2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00
2026-02-23 16:42:35 +01:00

Project Name

Short one-line description of what this project does.

Tech Stack

  • FastAPI — Python REST API framework
  • PostgreSQL — Relational database
  • SQLAlchemy — Async database connection layer
  • Docker / Docker Compose — Containerized development environment

Project Structure

project/
├──Create.sql — Database schema and seed data
├──docker-compose.yml
├──Dockerfile
├──requirements.txt
├──.env — Local environment variables (not committed)
└──app/
    ├── main.py — App entry point, router registration
    ├── config.py — Environment variable configuration
    ├── database.py — Database connection and session
    └── routers/
        ├── init.py
        └── example.py — Route definitions

Getting Started

Prerequisites

Setup

Create a .env file in the root directory:

postgres_user=exampleUser
postgres_password=examplePasswd
postgres_db=exampleDB
db_port=5432
api_port=8000

Start the stack:

docker compose up --build

The API will be available at http://localhost:8000. Interactive API docs are at http://localhost:8000/docs. Resetting the Database

If you need to reinitialize the database (e.g. after changing Create.sql):

docker compose down
rm -rf ./postgresData
docker compose up --build

⚠️ This will delete all data. Do not run in production.


The database schema is managed via Create.sql — no ORM migrations

The .env file is excluded from version control via .gitignore
Description
No description provided
Readme 33 KiB
Languages
Python 97.4%
Dockerfile 2.6%