Skip to content

AdarshTiwari3/fastapi_and_react_dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐳 Full-Stack App with FastAPI + React + PostgreSQL (Dockerized)

This project is a full-stack web application with:

  • βš™οΈ FastAPI (Python) backend
  • 🎨 React frontend
  • πŸ—„οΈ PostgreSQL database
  • πŸ› οΈ pgAdmin for database management
  • 🐳 Managed with Docker Compose

πŸ“ Project Structure

 
β”œβ”€β”€ backend/
β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ api/
β”‚ β”‚ β”‚ └── v1/
| | β”‚ β”‚ β”‚ β”œβ”€β”€ auth/
| | | β”‚ β”‚ β”‚ β”œβ”€β”€ controller.py
| | | β”‚ β”‚ β”‚ β”œβ”€β”€ model.py
| | | β”‚ β”‚ β”‚ β”œβ”€β”€ service.py
| | | β”‚ β”‚ β”‚ └── utils.py
β”‚ β”‚ β”œβ”€β”€ config/
β”‚ β”‚ β”‚ └── settings.py
β”‚ β”‚ β”œβ”€β”€ database/
β”‚ β”‚ β”‚ └── database.py
β”‚ β”‚ β”œβ”€β”€ entities/
β”‚ β”‚ β”‚ └── user.py
β”‚ β”‚ β”œβ”€β”€ main.py
β”‚ β”‚ └── routes.py
β”‚ β”œβ”€β”€ Dockerfile
β”‚ └── pyproject.toml
β”‚
β”œβ”€β”€ frontend/
β”‚ β”œβ”€β”€ public/
β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ assets/
β”‚ β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”‚ └── hooks/
β”‚ β”‚ β”‚ └── files/
β”‚ β”‚ └── App.tsx
β”‚ β”œβ”€β”€ Dockerfile
β”‚ β”œβ”€β”€ package.json
β”‚ └── vite.config.ts
β”‚
β”œβ”€β”€ docker-compose.yaml
β”œβ”€β”€ .env
└── README.md

πŸš€ Getting Started

πŸ”§ Prerequisites


πŸ“„ .env File Example

# PostgreSQL
POSTGRES_USER=postgres
POSTGRES_PASSWORD=yourpassword
POSTGRES_DB=yourdb
POSTGRES_HOST=db
POSTGRES_PORT=5432

# pgAdmin
PGADMIN_DEFAULT_EMAIL=[email protected]
PGADMIN_DEFAULT_PASSWORD=admin123

To Build and run the application

docker-compose up --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published