Since I'm a student at Udacity academy, I start to write the code for the trivia webpage.
In this webpage, you can:
- Display questions - both all questions and by category. Questions show the question, category and difficulty rating by default and can show/hide the answer.
- Delete questions.
- Add questions and require that they include question and answer text.
- Search for questions based on a text query string.
- Play the quiz game, randomizing either all questions or within a specific category.
Completing this trivia app gave me the ability to structure plan, implement, and test API skills.
The ./backend
directory contains a completed Flask and SQLAlchemy server. app.py defines the endpoints and reference models.py for DB and SQLAlchemy setup.
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.