Go to file
2025-08-04 09:57:45 +03:00
nginx init 2025-08-03 20:41:56 +03:00
src upd: db settings 2025-08-03 21:11:18 +03:00
.gitignore init 2025-08-03 20:41:56 +03:00
compose.local.yaml renamed compose file 2025-08-03 20:58:45 +03:00
compose.yaml renamed compose file 2025-08-03 20:58:45 +03:00
README.md upd: readme 2025-08-04 09:57:45 +03:00

Template sqlalchemy-template

This guide covers setting up the project locally for development and testing purposes.

Project Setup

Virtual Environment

It's recommended to use a Python virtual environment to isolate dependencies:

python -m venv venv
. venv/bin/activate

Environment Variables

Copy .env.example to .env and update any credentials, settings, etc.

Install Dependencies

pip install -r src/requirements.txt

Initialize Database

Create migrations from updated database schema:

alembic revision --autogenerate -m "<migrations name>"

Run migrations to setup database schema:

alembic upgrade head

Start Local Development

Start database and other services with docker

docker-compose up -d

Run app

uvicorn apps.main:app --reload

Create superuser

python apps/users/scripts/create_user.py -un admin -al 3 -pass adminpass

Useful URLs