Felipe Cardoso 6d34f81912 Add deployment Docker Compose file, testing utilities, security helpers, and database initialization script
- Introduced `docker-compose.deploy.yml` for deployment scenarios with pre-built Docker images.
- Added `auth_test_utils.py` to simplify authentication testing in FastAPI.
- Implemented `security.py` for token-based operations like file uploads and password resets.
- Created `init_db.py` for database initialization and superuser creation during startup.
- Updated dependencies and tests to support optional authentication in FastAPI.
- Enhanced entrypoint script to handle database initialization.
2025-10-29 22:30:43 +01:00

FastNext Stack

A modern, Docker-ready full-stack template combining FastAPI, Next.js, and PostgreSQL. Built for developers who need a robust starting point for web applications with TypeScript frontend and Python backend.

Features

  • 🐍 FastAPI Backend

    • Python 3.12 with modern async support
    • SQLAlchemy ORM with async capabilities
    • Alembic migrations
    • JWT authentication ready
    • Pydantic data validation
    • Comprehensive testing setup
  • ⚛️ Next.js Frontend

    • React 19 with TypeScript
    • Tailwind CSS for styling
    • Modern app router architecture
    • Built-in API route support
    • SEO-friendly by default
  • 🛠️ Development Experience

    • Docker-based development environment
    • Hot-reloading for both frontend and backend
    • Unified development workflow
    • Comprehensive testing setup
    • Type safety across the stack
  • 🚀 Production Ready

    • Multi-stage Docker builds
    • Production-optimized configurations
    • Environment-based settings
    • Health checks and container orchestration
    • CORS security configured

Quick Start

  1. Clone the template:
git clone https://github.com/yourusername/fastnext-stack myproject
cd myproject
  1. Create environment files:
cp .env.template .env
  1. Start development environment:
make dev
  1. Access the applications:

Project Structure

Description
FastNext Stack is a modern full-stack template combining FastAPI, Next.js, and PostgreSQL in a Docker-ready environment. It provides a production-grade foundation for building scalable web applications with TypeScript frontend and Python backend.
Readme MIT 7.3 MiB
Languages
TypeScript 53.5%
Python 44.4%
JavaScript 1.3%
Makefile 0.3%
CSS 0.2%
Other 0.2%