Skip to content

DamianMcNulty/project3quiz

Repository files navigation

Project 3 Flask application.

GitHub stars CircleCI

Goal

To create a Quiz Game

Description

User Stories

  1. 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.
  2. As a user, I want to solve a coding challenge and check my answer so that I can score a point
  3. As a user, I want solve the next challenge or finish the game
  4. As a user, I want to know my score as I play the game
  5. As a user, I want to view the leaderboard so that I can compare how I have played a game to other users

Technologies Used

  1. HTML5
  2. CSS3
  3. JavaScript
  4. Python 3.9.1
  5. Coverage
  6. JQuery 3.6.0
  7. DataTables 1.10.24
  8. CircleCI
  9. Flask

Local development

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

Local Backend testing

python test.py
pip install coverage
coverage run --include=./runserver.py test.py
coverage report
coverage html

Research

Credits

https://codepen.io/DamianMcNulty/pen/ZErGYgr

License

See LICENSE.