Skip to content

pengtoshi/pengtoshi-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

74 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pengtoshi Boilerplate

MIT License

TS-based boilerplate for development including client, server, and shared libraries.


πŸ›  Tech Stack

This boilerplate is built with NX, a smart, fast and extensible build system with first class monorepo support and powerful integrations.

Common
Repository & Styling Commitlint
Applications Next.js Nest.js
UI & Design Storybook Shadcn UI Tailwind CSS
Database & ORM Prisma PostgreSQL Redis

πŸ“ Folder Structure

πŸ“ 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

πŸš€ Getting Started

Installation

yarn install

Start Applications

Start all applications in development mode:

yarn start:all

Only 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:all

Start a specific application:

yarn start <app-name>

Testing

Run all tests:

yarn test:all

Run tests for a specific application:

yarn test <app-name>

Linting

Run linting for all applications:

yarn lint:all

Run linting for a specific application:

yarn lint <app-name>

Database

Generates Prisma Client and synchronizes the database schema:

yarn prepare:prisma

Run database migrations:

yarn db-migrate:dev

Storybook

Start Storybook:

yarn storybook

Build only:

yarn build-storybook

About

🌱 Monorepo kit for building web app 🌻

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors