Skip to content

Abib-44/fastapi-postgres-pgadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI PostgreSQL pgAdmin Docker Project

This project is a fully containerized Python backend application built with FastAPI, PostgreSQL, and pgAdmin. It demonstrates a clean project structure, database integration, and basic user management. The goal is to provide a solid starting point for scalable API development.


Project Structure

.
├── app
│ ├── database.py # Database connection and setup
│ ├── init.py
│ ├── main.py # FastAPI app entrypoint
│ ├── models
│ │ ├── init.py
│ │ └── user.py # User ORM model
│ ├── schemas
│ │ ├── init.py
│ │ └── user.py # Pydantic schemas for User
│ └── services
│ ├── init.py
│ └── user_service.py # Business logic for User
├── db
│ └── init
│ └── 01_schema.sql # Initial database schema
├── Dockerfile # Dockerfile for FastAPI app
├── compose.yaml # Docker Compose file for all containers
├── requirements.txt # Python dependencies
└── README.md

Features

  • FastAPI backend for building RESTful APIs
  • PostgreSQL database with initial schema
  • pgAdmin for database administration via browser
  • Dockerized environment for easy setup and deployment
  • Modular project structure: models, schemas, services

Prerequisites

  • Docker and Docker Compose installed
  • Python 3.10+ if you want to run outside Docker

Quick Start

  1. Clone the repository:
git clone git@github.com:Abib-44/fastapi-postgres-pgadmin.git

And in the end

docker compose up --build

quiz

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors