Skip to content
Public template

About

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

Topics

Resources

Stars

519 stars

Watchers

7 watching

Forks

Latest commit

 

History

915 Commits

Folders and files

Repository files navigation

next-nest

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

  • Build a web app using the most popular JavaScript backend and frontend frameworks.
  • Get started in minutes with a unified codebase - no need to sync or deploy multiple services.
  • Use typed DB data directly in React via GraphQL and SSR.
  • End-to-end type safety from database to forms.
  • When the time is right, you can easily split the frontend and backend into separate services.

Use this template

Featured in:

Stack

It has

Dev

mise install
cp .env.example .env
pnpm install
docker compose up -d db
pnpm build && pnpm typeorm migration:run && pnpm cli seed
pnpm start:dev

Then open http://localhost:3000. The landing page lists every route.

Checks

pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm e2e # in Google Chrome; starts the production build, or reuses a running app

Deploy

Dockerfile builds a production image. Run migrations and the seed on release, inside the image:

node node_modules/typeorm/cli.js -d dist/data-source.js migration:run && node dist/cli seed

The app reads its configuration from the environment; see .env.example.

About

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

Topics

Resources

Stars

519 stars

Watchers

7 watching

Forks

Used by

Contributors

Languages