Skip to content
/ next-nest-template Public template

NestJS + NextJS template repository with Yarn workspaces, shadcn/ui

Notifications You must be signed in to change notification settings

kir-dev/next-nest-template

Repository files navigation

NestJS + NextJS Starter Project by Kir-Dev

This is a starter project for a fullstack application using NestJS and NextJS. It includes a basic setup for a NestJS as backend and a NextJS as frontend, including shadcn/ui, ESLint, Prettier, and GitHub Actions.

Getting Started

Prerequisites

  • Node.js 22
  • Pnpm 10

Installation

You only need to install dependencies in the root directory.

pnpm install

Linter and Formatter Configuration

It is a must to use ESLint and Prettier in this project.

Set up ESLint and Prettier in your IDE and check fix on save or format on save options.

You can run the following commands to check linting and formatting issues.

pnpm lint
# or
pnpm lint:fix
pnpm format:check
# or
pnpm format

Development

You can run the backend and frontend separately.

pnpm start:backend # Starts on http://localhost:3001
pnpm start:frontend # Starts on http://localhost:3000

After Development

You can build the frontend and run the application.

pnpm build:frontend

Or build the backend.

pnpm build:backend

There are recommended GitHub Actions workflows for this setup, which will fail if one of the following commands fails:

pnpm lint
pnpm format:check
pnpm build:backend

Happy Coding!

About

NestJS + NextJS template repository with Yarn workspaces, shadcn/ui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •