FastAPI, PostgreSQL, Async SQLAlchemy, Async requests with AIOHTTP
Video code on youtube: https://www.youtube.com/watch?v=1CZZAhwqyco
- Docker
- Docker-compse
- Python >= 3.6
- Pipenv
Add project path at PYTHONPATH variable in .env file.
Start postgres database and pgadmin
docker-compose up -dStart environment
pipenv shellInstall python dependencies
pipenv installPopulate database
python populate.pyStart application
uvicorn main:app --port 8080There are two versions of assets/day_summary endpoint, so you can compare both performance.