A full-stack monorepo boilerplate combining Symfony (PHP) for the backend and Next.js (React + TypeScript) for the frontend, powered by Docker for easy local development.
- Backend: Symfony 6.x (API-ready)
- Frontend: Next.js 14 (App Router, TypeScript, TailwindCSS)
- UI Kit: ShadCN/UI
- Database: MySQL 8
- Containerization: Docker & Docker Compose
- Dev Tools: PHPMyAdmin, Symfony CLI, Composer, Prettier, ESLint
- Docker + Docker Compose
- Make sure ports
3100
,8082
,9500
,3307
, and8093
are available
docker-compose up --build
Then:
- Frontend: http://localhost:3100
- Symfony Backend (PHP-FPM): exposed at port
9500
(via nginx on8082
) - PHPMyAdmin: http://localhost:8093
- MySQL: port
3307
.
├── backend/ # Symfony app
│ ├── Dockerfile
│ └── nginx.conf
├── frontend/ # Next.js app (App Router)
│ ├── Dockerfile
│ └── src/
├── docker-compose.yml
Edit environment variables:
backend/.env
DATABASE_URL="mysql://symfony:symfony@db:3306/symfony?serverVersion=8.0.32&charset=utf8mb4"
- Symfony backend ready for API development
- Next.js frontend styled with Tailwind and ShadCN
- Clean folder structure with separation of concerns
- Instant dev environment with Docker
- Ready-to-use design system with components
# Backend (inside the backend container)
composer install
symfony serve
# Frontend (inside the frontend container or locally)
npm install
npm run dev
You can mark this repo as a template and Use this template
to start your own project.