Code Monkey home page Code Monkey logo

hearts's Introduction

hearts

To run:

https://developer.okta.com/blog/2018/12/20/crud-app-with-python-flask-react

  1. Install pipenv

https://pipenv.pypa.io/en/latest/install/#using-installed-packages

  1. Install python libraries:

within this project's directory:

pipenv install
  1. Run the flask app
pipenv run flask run

Development

After installing, above, for development:

FLASK_ENV=development pipenv run flask run

and in another terminal:

Within ~/$WORKSPACE/app/static/

npm run watch

Both of these commands will ensure live reloads of your backend/frontend code whenever you change the source code during development.

Note you'll still have to hard-refresh the page to see javascript changes though.

Testing

pyenv run pytest app/tests/

TODO list

  • Search for all 'todo's in codebase for more ideas.
  • Make actions realtime by using websockets
  • Validate moves (e.g. have to follow suits)
  • Add the 'exchange cards' part of the game.
  • Keep score
  • Add concept of more than one round in a game.
  • Add ability to join someone else's game.
  • Make the AI not completely dumb
  • Make AI player names (and game uuids) more fun (e.g red-penguin-2342)
  • Ensure this works on a phone as well as computer.
  • Upload to heroku
  • Add database storage for games so that reloading the server doesn't wipe out all existing games.
  • Add python and js linters.
  • Add auto-test runner as pre-commit hook.

hearts's People

Contributors

zimkies avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.