pip install -r requirements-dev.txt
pre-commit install
flake8 . --count --statistics
docker-compose -f docker-compose.yml up --build
Start core microservices (assuming all microservice repos are in the same folder):
docker-compose -f ../DNYF-API-Group/docker-compose.yml up --build
docker-compose -f ../DNYF-User-API/docker-compose.yml up --build
docker-compose -f ../DNYF-Contact-API/docker-compose.yml up --build
To start the API using a local Python environment:
uvicorn src.app:app --reload
First build and start the containers in debug mode:
docker-compose -f docker-compose.debug.yml up --build
Then in VSCode:
- Navigate to Run and Debug
- Select the Python: Remote Attach configuration
- Start debugging
docker build --tag dnyf-composite-api .
docker run --name dnyf-composite-api \
-p 8010:8010 \
--network dnyfnet \
-d dnyf-composite-api