Skip to content

darixsamani/fastapi-postgres

Repository files navigation

FastAPI Async Template with PostgreSQL

This is a template for building asynchronous FastAPI applications with PostgreSQL.

If you're looking to understand the project in depth, please refer to the full documentation here:
👉 Deep Documentation

Features

  • Python FastAPI backend
  • POSTGRESQL Database
  • Docker-Compose
  • Authentification
  • Migration with Alembic
  • PGADMIN4 for Graphical Database Visualization
  • Asynchronous
  • Support SQLmodel

Here are the steps to follow to run the program:

After cloning the repository, go to it.

  1. DOCKER COMPOSE

    docker compose up -d --build
    
    
  2. RUN FRIST MIGRATION

    docker compose exec app uv run alembic revision --autogenerate -m "first migration"
    docker compose exec app uv run alembic upgrade head
    
  3. Please turn on the LISTEN Docs app. 0.0.0.0:8001/docs

  4. PGADMIN4

access to pgadmin by specified db as name server and 5434 as port at localhost/5050

username: admin@gmail.com password: admin

Please turn on the LISTEN Docs app. 0.0.0.0:5050

  1. EXAMPLE IMAGE

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy