API using fastapi and sqlmodel
Features:
- Fastapi
- SQLModel
- Postgres
- Alembic
python -m venv env. env/scripts/activatepython -m pip install --upgrade pippip install -r requirements.txtCreate .env file. Check the example .env.example
🚧 Before first run:
Run docker-compose 🐳 to start the database server
docker compose -f "docker-compose.yml" up -d --build adminer dband init the database with alembic:
alembic upgrade headdocker compose -f "docker-compose.yml" up -d --build adminer dband
uvicorn app.main:app --reload --port 8000or using docker-compose 🐳 for run all services
docker compose -f "docker-compose.yml" up -d --build