Note: This repository is a hard fork from https://github.com/platformatic/watt-next-laravel
A full-stack application combining Next.js frontend with Symfony backend, orchestrated using Platformatic's Watt framework.
This project consists of three main services:
web/my-app- Next.js frontend application with React 19 and Tailwind CSSweb/laravel- Laravel backend powered by Platformatic PHPweb/composer- Platformatic Composer service acting as the main orchestrator
- Node.js >= 22.14.0
- All PHP binary dependencies installed as listed in https://github.com/platformatic/php-node
- MySQL run via Docker (
docker compose upin this directory)
This .env file is required for the project to run (you can copy it with cp .env.sample .env):
PLT_SERVER_HOSTNAME=127.0.0.1
PORT=3000
PLT_SERVER_LOGGER_LEVEL=info
PLT_MANAGEMENT_API=true
PLT_COMPOSER_TYPESCRIPT=false
PLT_COMPOSER_EXAMPLE_ORIGIN=http://127.0.0.1:3043
PLT_SYMFONY_TYPESCRIPT=false
Install dependencies for all workspaces:
npm installStart the development environment:
npm run devThis will start all services in development mode with hot reload enabled.
Build all services:
npm run buildStart in production mode:
npm start- Location:
web/my-app/ - Framework: Next.js 15.3.2 with React 19
- Styling: Tailwind CSS v4
- TypeScript: Fully typed
- Location:
web/laravel/ - Runtime: Platformatic PHP
- Content: Standard Laravel installation
- Location:
web/composer/ - Purpose: Service orchestration and API composition
- Framework: Platformatic Composer
The project is configured through:
watt.json- Main Watt runtime configuration- Individual
platformatic.jsonfiles in each service directory package.jsonworkspaces configuration
npm run dev- Start development environmentnpm run build- Build all servicesnpm start- Start production environment
This application follows a microservices architecture where:
- The Composer service acts as the main entry point
- Next.js provides the frontend experience
- Laravel serves as the content management system
- All services are orchestrated through Platformatic Watt
This project is licensed under the Apache License 2.0. See the LICENSE file for details.