/api-blog

Primary LanguagePython

For this project you need poetry and python version 3.8 or higher.

Getting started

Clone the repository and access the folder apk_monitoring.

git clone git@github.com:hopechan/api-blog.git
cd api-blog

Create env file

Rename file .env.example to .env

mv .env.example .env

Fill the environment variables with the correct credentials.

Database

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

Install dependencies

poetry install
source .venv/bin/activate

start development site

flask --app api/v1 run --debug