For this project you need poetry and python version 3.8 or higher.
Clone the repository and access the folder apk_monitoring.
git clone git@github.com:hopechan/api-blog.git
cd api-blog
Rename file .env.example to .env
mv .env.example .env
Fill the environment variables with the correct credentials.
If you are using docker run
docker exec -i container_name /bin/bash -c "PGPASSWORD=db_password psql -U db_user -d db_name < dump.sql"
otherwise
psql -U db_user -d db_name < dump.sql
poetry install
source .venv/bin/activate
flask --app api/v1 run --debug