Skip to content
/ nx-starter Public template

Monorepo template with Next, Nest and NX

Notifications You must be signed in to change notification settings

Angoliuk/nx-starter

Repository files navigation

NxStarter - NNN (Next, Nest, NX)

Stack:

  • Next
  • Nest
  • Prisma

Key features:

  • GH actions with linting, building and auto deploy
  • Docker compose with postgres and pgAdmin for dev
  • TS-Rest for end-to-end type-safety and auto generated swagger
  • Shared package for reusable code between packages
  • Pre-configured tailwind
  • Next with Server Components
  • No JS only TS

Prerequisites:

  • NodeJS 20+
  • Pnpm 8+
  • Docker with docker compose

First start:

  1. Run pnpm i to install dependencies
  2. Prepare env files. I created .env.example with default envs
  3. Run docker compose up to start db
  4. Run pnpm nx run api:serve to start api app
  5. Run pnpm nx run web:serve to start web app

Blocked features:

  1. Aliases inside apps
    Reasons:
    • tsconfigs paths do not combine, so if I will add aliases, then root aliases will be removed

About

Monorepo template with Next, Nest and NX

Resources

Stars

Watchers

Forks

Languages