FastAPI, PostgreSQL, SQLAlchemy, Alembic, JWT, Pytest
- Docker
- Docker-compse
- Poetry
Add the environment variables in the .env
file.
Start project containers
docker-compose up -d
Start environment
poetry shell
Install python dependencies
poetry install
Run alembic migrations
docker-compose run app sh -c "alembic upgrade head"
Run tests
docker-compose run app sh -c "pytest"
- The application will run at: http://localhost:8000
- You can see the API documentation at: http://localhost:8000/docs
- The PGAdmin will run at: http://localhost:5050