TS-based boilerplate for development including client, server, and shared libraries.
This boilerplate is built with NX, a smart, fast and extensible build system with first class monorepo support and powerful integrations.
| Common | |
| Repository & Styling | |
| Applications | |
| UI & Design | |
| Database & ORM |
|
π pengtoshi-boilerplate
βββ π apps
β βββ π client-next # Next.js client app example
β βββ π server-nest # NestJS server app example
β βββ π server-nest-e2e # E2E tests for NestJS server
βββ π libs # Shared libraries
βββ π tools # Tools for development
βββ π docs # Documentation
yarn installStart all applications in development mode:
yarn start:allOnly for the first time: This command will start the docker containers first, run the migrations, and start the applications. After that, you can start the applications by running yarn start:all.
yarn docker:up
yarn db-migrate:dev
yarn start:allStart a specific application:
yarn start <app-name>Run all tests:
yarn test:allRun tests for a specific application:
yarn test <app-name>Run linting for all applications:
yarn lint:allRun linting for a specific application:
yarn lint <app-name>Generates Prisma Client and synchronizes the database schema:
yarn prepare:prismaRun database migrations:
yarn db-migrate:devStart Storybook:
yarn storybookBuild only:
yarn build-storybook