Random Facts Quiz is a simple and engaging web application that presents users with true/false trivia questions about interesting facts. This application was created as the final project of the Software Quality and Reliability course in Innopolis University.
to install dependencies run following command in the main directory of the project:
cd some_path_for_project/RandomFactsQuiz/
poetry install
To run the application locally, you need to set up postgres database and create .env to write there information to connect to your db. Then you need to apply migrations with the following commands():
alembic upgrade head
If previous step is done, then you need to start fastAPI service with the following command:
poetry run python -m random_quiz
After that run streamlit with the following command:
streamlit run .\random_quiz\streamlit_front.py
For test use the following command:
poetry run python -m pytest --verbosity=2 --showlocals --cov=random_quiz --cov-report html --cov-fail-under=60
so far coverage of the tests is 61.72%
I use Flake8 for linting:
flake8 .