This is an application to manage a trivia webpage app and play it as a game. The front-end is minimal; the focus is on the back-end API used for accessing a postgres (postgresql) database.
The application:
- Displays questions - both all questions and by category. Question data includes the question, category and difficulty rating by default and can show/hide the answer.
- Deletes questions.
- Adds questions and requires that they include question and answer text.
- Searches for questions based on a text query string.
- Plays the quiz game, randomizing either all questions or within a specific category.
For more information about the frontend and backend (again the focus is on the backend), see the following links:
The key functional areas are:
The ./backend directory contains a Flask and SQLAlchemy server. The work for this is primarily in app.py, where the endpoints are defined, referencing models.py for the DB schema and SQLAlchemy setup where necessary.
View the README.md within ./backend for more details.
The ./frontend directory contains a complete React frontend to consume the data from the Flask server.
View the README.md within ./frontend for more details.
