Skip to content

Rendoc/mindmap-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mind Map API

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)

How to run

You need docker and docker-compose

using the run.sh

sh bin/run.sh

using the whole command :p

docker-compose up --build

How to run tests

Run the tests in the docker container

docker-compose up --build -d
docker-compose exec api pytest --cov=. ./

How to run linter

flake8 src/

How to access database

docker-compose exec db psql --username=postgres_user --dbname=mindmap

Setup dev env

  1. 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.txt

Generate requirements.txt

pipenv lock --requirements > requirements.txt

About

MindMap api service with FastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published