Project includes:
fastapi
Check db/models and migrations, there is one example.
Setup env variables in app/core/.env
using app/core/.env-example
docker-compose up -d web
# you can track logs with:
docker-compose logs -f --tail=100 web
Go to: http://localhost:8000/api/docs/
Run tests
docker-compose exec web pytest .
pip install -r requirements.txt
Setup env variables in app/core/.env
.
cd infra_ai_service/
python infra_ai_service/server.py
Go to: http://localhost:8000/api/docs/
Run tests
cd infra_ai_service
pytest .
To run this project, you will need to add the following environment variables to your app/core/.env file
BASE_URL
- default: http://localhost:8000
RELOAD
- default: false
DB_HOST
- default: localhost
DB_PORT
- default: 5432
DB_USER
- default: postgres
DB_PASS
- default: postgres
DB_BASE
- default: db
DB_ECHO
- default: false