{"repo":"mdhishaamakhtar/fastapi-sqlalchemy-postgres-template","free":true,"listed":false,"github":"https://github.com/mdhishaamakhtar/fastapi-sqlalchemy-postgres-template","clone":"git clone https://github.com/mdhishaamakhtar/fastapi-sqlalchemy-postgres-template.git","description":"A FastAPI CRUD starter template with SQLAlchemy and PostgreSQL.","language":"Python","stars":62,"topics":["fastapi","sqlalchemy-python","sqlalchemy-orm","pydantic","black-python","pytest","rest-api","crud-application","python"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"FastAPI SQLAlchemy PostgreSQL Template Minimal starter template for a CRUD API with FastAPI + SQLAlchemy + PostgreSQL. Features - FastAPI app with CORS enabled - SQLAlchemy ORM integration - Postgres-ready configuration via DATABASE URL - CRUD endpoints for posts - Pytest suite (DB mocked for local test runs) - Docker + Docker Compose local setup Requirements - Python 3.10+ - pip - PostgreSQL (only needed when running app without Docker) Local Setup (Without Docker) 1. Create and activate venv: 2. Install dependencies: 3. Add env vars: 4. Run API: API Docs When the server is running: - Swagger UI: http://127.0.0.1:8000/docs - ReDoc: http://127.0.0.1:8000/redoc - OpenAPI JSON: http://127.0.0.1:8000/openapi.json Tests Formatting Docker (Recommended for Local Run) 1. Create .env : 2. Build and start: 3. Access: - API: http://127.0.0.1:8000 - Swagger: http://127.0.0.1:8000/docs - ReDoc: http://127.0.0.1:8000/redoc DATABASE URL is passed to the API container from docker-compose.yml and can be overridden via .env .","default_branch":null,"files":null,"tree":[],"storefront":"/r/mdhishaamakhtar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mdhishaamakhtar/fastapi-sqlalchemy-postgres-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}