SaaS Microservices

R
Renaudil y a 2 jours
0

Description

A SaaS dashboard that talks to 2 API microservices defined in Nitro and Hono, all running under the same domain.

npx boilerapp saas-microservices

Documentation

SaaS Microservices

This is an example SaaS project with 2 API services defined as microservices.

Getting Started

pnpm install
pnpm dev

Open http://localhost:3024 to view the dashboard. The dashboard will make API calls to the api service for the information to display in the dashboard.

How It Works

There are 2 separate applications in this example:

  • dashboard - A Next.js application to show the UI. This application also controls the microfrontends.json configuration to route API paths to the other microservices (see below).
  • api - An Express.js backend serving data displayed in the dashboard.

These all run under the same domain. Paths to each application are routed using Vercel's microfrontends support:

graph TD
    Request --> Vercel{Vercel}

    Vercel -->|"/api/*"| Api[api]
    Vercel -->|"Everything else"| DashboardApp[Dashboard]

Running Locally

To run all applications together, run:

pnpm dev

A local development proxy is automatically run to stitch requests from each application to the local instance of each service.

A single or subset of applications can also be run:

pnpm dev:dashboard
pnpm dev:api
pnpm turbo run dev -F api -F dashboard

Prix

Gratuit

FREE

Commentaires (0)

FAQ

Questions Fréquemment Posées

Vous avez une question ? Nous avons les réponses. Si vous ne trouvez pas ce que vous cherchez, n'hésitez pas à nous contacter.

Boilerapp est une plateforme communautaire dédiée au partage de boilerplates, de starter kits et de modèles de projets pour développeurs. Notre objectif est simple : vous faire gagner du temps sur la configuration initiale (setup) pour que vous puissiez coder ce qui compte vraiment. Que vous cherchiez une simple base de code ou un projet SaaS complet, vous le trouverez ici.

Vous avez d'autres questions ?

Notre équipe est là pour vous aider. Contactez-nous et nous vous répondrons dès que possible.

SaaS Microservices | BoilerApp