Skip to content

platformatic/composer-next-node-fastify

Repository files navigation

Composer Next Node Fastify

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.

Overview

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

Requirements

  • Node.js >= v18.8.0 or >= v20.6.0
  • npm or another package manager

Installation

# Install dependencies for all services
npm install

Development

Start the development server with auto-reloading:

npm run dev

Production

Build all services:

npm run build

Start the production server:

npm start

For larger configurations:

npm run start-big

Explore

Project Structure

  • /web/composer - Platformatic Composer service configuration
  • /web/next - Next.js frontend application
  • /web/node - Node.js HTTP service
  • /web/fastify - Fastify API service

License

See LICENSE file for details.

About

Demo of a Watt application with a Composer, a Next.js, a Fastify and Node.js services.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •