Full-stack scaffold for a single-system monorepo
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.
Clone the scaffold and run pnpm install from the repo root.
Copy .env.example files and set Logto, database, and port values.
Run pnpm docker:up to start PostgreSQL and Adminer.
From apps/api, run migrations and seed the example links data.
Run pnpm dev to start web, admin, and API in parallel with Turborepo.
Edit this page in apps/web/app/page.tsx.