A comprehensive full-stack development template with multiple frontend frameworks, modern backends, and utility tools. Perfect for rapid prototyping and production applications.
Questo progetto offre diverse configurazioni docker-compose per soddisfare diverse esigenze di sviluppo:
# Clone the repository
git clone <your-repo-url>
cd Modular-Template
# π― CONFIGURAZIONE PRINCIPALE (Raccomandata)
# Frontend + Backend + Database
docker compose up --build
# π CONFIGURAZIONE COMPLETA
# Tutti i servizi frontend e backend
docker compose -f docker-compose.complete.yml up --build
# βοΈ REACT + EXPRESS
# Solo React con backend Express
docker compose -f docker-compose.frontend1-b4f-auth.yml up --build
# π REACT + FASTAPI
# React con backend Python
docker compose -f docker-compose.frontend-backend.yml up --build
# π ASTRO STANDALONE
# Solo Astro per siti statici
docker compose -f docker-compose.frontend2-standalone.yml up --build
# π§ SOLO BACKEND
# Solo servizi backend per API development
docker compose -f docker-compose.backend-only.yml up --build- Docker Compose Guide - Panoramica completa delle configurazioni
- Backend Environment Setup - Setup variabili d'ambiente per Stripe e Kinde
- Integration Setup - Guida completa per l'integrazione
# Per FastAPI (backend)
docker compose exec backend uv run alembic upgrade head
# Per Express (b4f)
docker compose -f docker-compose.standard.yml exec b4f yarn prisma migrate dev| Project | Technology | Port | Authentication | Description |
|---|---|---|---|---|
| frontend | React 19 + Vite + Tailwind + DaisyUI | 5173 | Kinde + Stripe + TanStack Query | Modern React app with dark mode, authentication and payments |
| frontend1 | React 19 + Craco | 3000 | Firebase Auth | React app with Material-UI, Redux Toolkit |
| frontend2 | Astro 5 + TypeScript | 4321 | - | Static site generator with zero JS by default |
| frontend3 | Next.js 15 + React 19 + Turbopack | 3003 | - | Full-stack React framework with App Router |
| frontend4 | Vue 3 + Vite 7 + TypeScript | 3004 | - | Modern Vue.js application with Composition API |
| frontend5 | Angular 18 + TypeScript | 4200 | - | Enterprise Angular app |
| Project | Technology | Port | Database | Description |
|---|---|---|---|---|
| backend | FastAPI 2.0 + Python | 8000 | PostgreSQL | Modern Python API with SQLAlchemy 2.0 + Stripe + Kinde |
| b4f | Express 5 + TypeScript | 3001 | PostgreSQL | Backend for Frontend with Stripe integration |
| b4f1 | NestJS 11 + TypeScript + SWC | 3002 | - | Enterprise Node.js API with decorators |
| Project | Technology | Description |
|---|---|---|
| numpy | Python + OpenCV | OCR text analyzer for pharmaceutical labels |
- React 19 with concurrent rendering and Suspense
- TypeScript for type safety across all projects
- Material-UI (MUI) for modern React UI components
- Tailwind CSS 4 for utility-first styling
- DaisyUI for component library and themes
- TanStack Query for server state management
- Vite 7 for ultra-fast development and building
- Next.js 15 with App Router and Turbopack
- Astro 5 for static sites with zero JS by default
- Vue 3 with Composition API and
<script setup> - Angular 22 for enterprise applications
- Redux Toolkit for predictable state management
- React Router for client-side routing
- FastAPI 2.0 with async/await and automatic OpenAPI docs
- SQLAlchemy 2.0 with async support and type hints
- Express.js 5 with TypeScript and modern middleware
- NestJS 11 with decorators and dependency injection
- Prisma ORM for type-safe database management
- PostgreSQL as primary database
- Alembic for database migrations
- SWC for ultra-fast TypeScript compilation
- Firebase Authentication for user management
- Kinde for modern auth solutions
- Stripe for payment processing
- JWT tokens for API authentication
- Docker & Docker Compose for containerization
- ESLint + Prettier for code quality
- Jest + Testing Library for testing
- Cypress for E2E testing
- Swagger/OpenAPI for API documentation
- Docker and Docker Compose
- Node.js 22+ (for local development)
- Python 3.13+ (for local development)
- Copy environment files:
# For each project, copy the example environment file
cp frontend/.env.example frontend/.env
cp backend/.env.example backend/.env
cp b4f/.env.example b4f/.env-
Configure environment variables (see individual project READMEs)
-
Start services:
docker compose up --buildEach project has its own detailed README with specific setup instructions:
- Backend (FastAPI)
- Frontend (React + Vite)
- Frontend1 (React + Craco)
- Frontend2 (Astro)
- Frontend3 (Next.js)
- Frontend4 (Vue)
- B4F (Express)
- B4F1 (NestJS)
- Numpy (OCR Tools)
| Configurazione | Frontend | Backend | Database | Uso Principale | Comando |
|---|---|---|---|---|---|
| main | React + Vite | FastAPI | PostgreSQL | Configurazione principale | docker compose up --build |
| complete | Tutti i Frontend | Tutti i Backend | PostgreSQL | Configurazione completa | docker compose -f docker-compose.complete.yml up --build |
| frontend-backend | React + Vite | FastAPI | PostgreSQL | React + Python | docker compose -f docker-compose.frontend-backend.yml up --build |
| frontend1-b4f-auth | React + Material-UI | Express | PostgreSQL | React + Auth/Payments | docker compose -f docker-compose.frontend1-b4f-auth.yml up --build |
| frontend3-b4f1 | Next.js | NestJS | PostgreSQL | Next.js + NestJS | docker compose -f docker-compose.frontend3-b4f1.yml up --build |
| frontend2-standalone | Astro | - | - | Siti statici | docker compose -f docker-compose.frontend2-standalone.yml up --build |
| frontend4-standalone | Vue | - | - | Vue.js | docker compose -f docker-compose.frontend4-standalone.yml up --build |
| frontend5-standalone | Angular | - | - | Angular | docker compose -f docker-compose.frontend5-standalone.yml up --build |
| backend-only | - | Express + FastAPI + NestJS | PostgreSQL | Solo API | docker compose -f docker-compose.backend-only.yml up --build |
π Per una guida completa: Consulta Docker Compose Guide per dettagli su ogni configurazione.
# Start all services (configurazione standard)
docker compose -f docker-compose.standard.yml up --build
# Start specific services
docker compose -f docker-compose.standard.yml up frontend frontend1 backend b4f
# View logs
docker compose -f docker-compose.standard.yml logs -f backend
docker compose -f docker-compose.standard.yml logs -f frontend
# Execute commands in containers
docker compose exec backend python script.py
docker compose -f docker-compose.standard.yml exec frontend yarn test
docker compose -f docker-compose.standard.yml exec frontend yarn dev
docker compose -f docker-compose.standard.yml exec frontend2 yarn build
docker compose -f docker-compose.standard.yml exec frontend3 yarn dev
docker compose -f docker-compose.standard.yml exec frontend4 yarn dev
docker compose -f docker-compose.standard.yml exec b4f1 yarn start:dev# FastAPI backend
docker compose exec backend uv run alembic upgrade head
# B4F backend
docker compose exec b4f yarn prisma migrate dev- FastAPI Backend: http://localhost:8000/docs
- B4F Backend: http://localhost:3001/swagger
- B4F1 Backend: http://localhost:3002/api
Each project includes comprehensive testing:
# Frontend tests
docker compose exec frontend yarn test
docker compose exec frontend2 yarn test
docker compose exec frontend3 yarn test
docker compose exec frontend4 yarn test
# Backend tests
docker compose exec backend uv run pytest
docker compose exec b4f yarn test
docker compose exec b4f1 yarn test- CORS configuration for cross-origin requests
- Rate limiting to prevent API abuse
- Input validation with Pydantic schemas
- JWT authentication for secure API access
- Environment variable management
- Docker security best practices
- Structured logging with Pino (B4F)
- Request/Response logging for debugging
- Health check endpoints for monitoring
- Error tracking and exception handling
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions and support:
- Check individual project READMEs
- Open an issue on GitHub
- Contact DrBlink7