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.
- Node.js 22
- Pnpm 10
You only need to install dependencies in the root directory.
pnpm installIt 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:fixpnpm format:check
# or
pnpm formatYou can run the backend and frontend separately.
pnpm start:backend # Starts on http://localhost:3001pnpm start:frontend # Starts on http://localhost:3000You can build the frontend and run the application.
pnpm build:frontendOr build the backend.
pnpm build:backendThere are recommended GitHub Actions workflows for this setup, which will fail if one of the following commands fails:
pnpm lintpnpm format:checkpnpm build:backend