A multi-service application combining Next.js, Node.js, and Fastify services, orchestrated with Platformatic. Watt runs all the services, while Platformatic Composer routes the requests to each one.
This project demonstrates how to build and run multiple services under a single orchestration layer:
- Platformatic Composer: Central orchestration service
- Next.js: Frontend application
- Node.js: Simple HTTP service
- Fastify: API service
Each service is accessible via specific proxy paths:
/next- Next.js frontend/node- Node.js service/fastify- Fastify API
- Node.js >= v18.8.0 or >= v20.6.0
- npm or another package manager
# Install dependencies for all services
npm installStart the development server with auto-reloading:
npm run devBuild all services:
npm run buildStart the production server:
npm startFor larger configurations:
npm run start-big- 🚀 Platformatic Composer server: http://localhost:3042/
- 📝 REST API documentation: http://localhost:3042/documentation/
/web/composer- Platformatic Composer service configuration/web/next- Next.js frontend application/web/node- Node.js HTTP service/web/fastify- Fastify API service
See LICENSE file for details.