This repository contains a Turborepo setup using pnpm workspaces with two boilerplate for backend and frontend:
- frontend-boilerplate – a Next.js app
- backend-boilerplate – a NestJS app
Also we have a shared-lib-boilerplate package that can be clone to create a package that other apps and packages can use.
A shared types package provides TypeScript types used by both apps.
pnpm dev– run both apps in developmentpnpm build-type– build types libpnpm build– build all appspnpm lint– run ESLintpnpm format– format code with Prettierpnpm prettier– check code format with Prettier
- Node.js
- pnpm
Install dependencies with pnpm install and then run the scripts above.
The frontend is configured with Tailwind CSS and the shadcn component library.
This project uses Husky and lint-staged to ensure code quality. On every commit:
- ESLint checks are run on affected files
- TypeScript type checking is performed
- Prettier formats all staged files
See docs/HUSKY_LINT_STAGED.md for details.