This project is based on Michaldev's Github fastapi-async-mongodb.
Headers, tokens and other security features has been ignored for simplicity. How to setup a local Mongodb for testing purposes.
Check ./Makefile content to understand how to run the app manually.
- Makefile:
make run_pytest_venv # run tests from a virtual environment (.venv)make run_docker_dev # create and run the api from ./docker/Dockerfile.dev
├───api
│ ├───db # db connection and mongodb api
│ ├───models # pydantic models
│ ├───public # public api namespaces
│ │ ├───health # health check
│ │ └───user # CRUD endpoints
│ └───utils # app utilities
│ │ └───logger # custom logger
│ └───config.py # app config
│ └───main.py # app main
├───docker # dockerfiles
├───requirements # dependencies
└───tavern_tests # api tests
└───entry_point.py # app entry point
└───Makefile # commands helper
