Trivia App is a website built by a restful API, which permits you to create questions, see different categories and questions, and play a quiz to test your knowledge.
Game mechanism:
Currently, when a user plays the game they play up to five questions of the chosen category. If there are fewer than five questions in a category, the game will end when there are no more questions in that category.
This FullStack project demonstrates my knowledge in building REST APIs with Flask.
- Clone the repository to your laptop.
- From the backend directory, create a virtual environment, install requirements and set the required environment variables or check out the backend documentation here.
- Start the backend server by running
python run.py
- Run another terminal session. In the frontend directory, run
npm install
to install the required dependencies. - Finally, start the frontend server by running
npm start
- You can view the website by visiting or clicking http://localhost:3000 in your browser.
For more information about how to get up and running, consult the following documents:
the backend is a server backed with Flask and SQLAlchemy. The frontend created using react and jquery/ajax. The two servers communicate using a REST api.
- clone the project
- create a new branch
- open a pull request with only the changed files
- Suggestions
- Add an additional question field such as rating and make all corresponding updates (db, api endpoints, add question form, etc.)
- INTENSE: Add users to the DB and track their game scores
- Add capability to create new categories.