Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,291 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Full Stack FastAPI Template

Modern production-ready full stack template built with FastAPI, React, PostgreSQL, and Docker.

Designed for scalable SaaS apps, AI platforms, dashboards, APIs, and automation systems.

FastAPI React TypeScript PostgreSQL Docker


✨ Features

  • ⚑ FastAPI backend
  • 🎨 Modern React / Next.js frontend
  • πŸ” JWT Authentication
  • πŸ—„ PostgreSQL database
  • 🐳 Dockerized development & deployment
  • πŸ“¦ RESTful API architecture
  • πŸ“„ Swagger / OpenAPI docs
  • πŸ”„ Alembic migrations
  • 🌍 Production-ready setup
  • πŸ€– AI-ready architecture
  • πŸ“‘ WebSocket support
  • 🧩 Modular scalable structure
  • πŸš€ CI/CD friendly

πŸ“Έ Preview

Dashboard

Preview

API Docs

API


πŸ›  Tech Stack

Backend

  • FastAPI
  • SQLAlchemy
  • PostgreSQL
  • Alembic
  • Pydantic

Frontend

  • React / Next.js
  • TypeScript
  • Tailwind CSS

DevOps

  • Docker
  • Docker Compose
  • GitHub Actions
  • Nginx

⚑ Quick Start

Clone Repository

git clone https://github.com/YOUR_USERNAME/full-stack-fastapi-template.git

cd full-stack-fastapi-template

Start with Docker

docker compose up --build

Application will be available at:

Frontend: http://localhost:3000
Backend:  http://localhost:8000
Docs:     http://localhost:8000/docs

πŸ“‚ Project Structure

full-stack-fastapi-template/
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ services/
β”‚   └── core/
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ pages/
β”‚   └── hooks/
β”‚
β”œβ”€β”€ docker/
β”œβ”€β”€ nginx/
β”œβ”€β”€ docs/
└── docker-compose.yml

πŸ” Authentication

Authentication system includes:

  • JWT access tokens
  • Refresh tokens
  • Secure password hashing
  • Role-based permissions
  • User management

πŸ€– AI Integration Ready

This template is optimized for AI applications:

  • OpenAI integration
  • LangChain support
  • AI Agents
  • Streaming responses
  • WebSocket chat
  • Background tasks

Perfect for:

  • AI SaaS platforms
  • ChatGPT clones
  • Automation systems
  • Trading dashboards
  • Real-time apps

🌍 Deployment

Supports deployment on:

  • AWS
  • GCP
  • Azure
  • Railway
  • Render
  • DigitalOcean
  • VPS servers

πŸ“ˆ Roadmap

  • Multi-tenant architecture
  • Kubernetes deployment
  • Advanced RBAC
  • AI workflow engine
  • Realtime notifications
  • Stripe integration
  • Monitoring dashboard

πŸ§ͺ Development

Backend

cd backend

pip install -r requirements.txt

uvicorn app.main:app --reload

Frontend

cd frontend

npm install

npm run dev

🀝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create your feature branch
  3. Commit changes
  4. Push to branch
  5. Open a Pull Request

⭐ Support

If you like this project:

  • Give it a ⭐ on GitHub
  • Share it with developers
  • Contribute improvements

πŸ“œ License

MIT License


Built with ❀️ using FastAPI & React

About

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages