To create a Quiz Game
- As a user, I want to create a username which is between 6 and 10 letters or digits long, does not contain spaces and does not begin with a digit so that I can submit my username to start a game.
- As a user, I want to solve a coding challenge and check my answer so that I can score a point
- As a user, I want solve the next challenge or finish the game
- As a user, I want to know my score as I play the game
- As a user, I want to view the leaderboard so that I can compare how I have played a game to other users
Windows
setx /m DEVELOPMENT True
setx /m SECRET_KEY "..."
setx /m MONGO_DBNAME "..."
setx /m MONGO_URI "..."
setx /m PORT 8080
pip install virtualenv
python -m virtualenv env
.\env\Scripts\activate
pip install -r requirements.txt
python runserver.py
.\env\Scripts\deactivate
python test.py
pip install coverage
coverage run --include=./runserver.py test.py
coverage report
coverage html
- https://www.reddit.com/r/learnpython/comments/1hsxxy/faviconico_get_request_in_flask/
- https://stackoverflow.com/questions/30333299/pymongo-bson-convert-python-cursor-cursor-object-to-serializable-json-object
https://codepen.io/DamianMcNulty/pen/ZErGYgr
See LICENSE.