n8stack-monorepo-monorepo

Full-stack scaffold for a single-system monorepo

Next.js
Mantine
NestJS
Logto
Turborepo

What's Inside

A production-ready monorepo with four integrated layers, ready to generate new projects.

Web App

Public Next.js app router frontend with authenticated and anonymous entrypoints.

Admin App

Admin-facing app with Logto Management API integration and RBAC.

API

NestJS backend with Knex, PostgreSQL, JWT validation, and scope guards.

Shared Packages

Shared schemas, DTOs, validators, and UI primitives across all apps.

Getting Started

Clone & install

Clone the scaffold and run pnpm install from the repo root.

Configure environment

Copy .env.example files and set Logto, database, and port values.

Start Docker services

Run pnpm docker:up to start PostgreSQL and Adminer.

Run migrations & seed

From apps/api, run migrations and seed the example links data.

Start dev servers

Run pnpm dev to start web, admin, and API in parallel with Turborepo.

FAQ

Edit this page in apps/web/app/page.tsx.