MindMap api service with FastAPI
For the API usage you can consult the swagger at <HOST>/docs (ie using the run.sh: http://localhost:8080/docs)
You need docker and docker-compose
using the run.sh
sh bin/run.shusing the whole command :p
docker-compose up --buildRun the tests in the docker container
docker-compose up --build -d
docker-compose exec api pytest --cov=. ./flake8 src/docker-compose exec db psql --username=postgres_user --dbname=mindmap- Create venv
This project uses pipenv for dependencies.
pip install pipenv
pipenv --python 3.9
cd src/ && pipenv install & pipenv shell- you can also use the generated requirements.txt *
cd src/
pip install -r requirements.txtGenerate requirements.txt
pipenv lock --requirements > requirements.txt