Skip to content

Tuan2002/nestjs-template

Repository files navigation

Description

A NestJS application template with a comprehensive development workflow, including testing, linting, formatting, and cross-platform compatibility.

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

# watch mode
$ pnpm run test:watch

Development Workflow

This project uses Husky for Git hooks to ensure code quality and consistency across all platforms.

🌍 Cross-Platform Compatibility

Our development setup works seamlessly on:

  • Windows (PowerShell, Git Bash, WSL2)
  • macOS (Terminal, iTerm2)
  • Linux (bash, zsh)

For platform-specific setup instructions, see Cross-Platform Setup Guide.

Code Quality Tools

# Lint and fix code
$ pnpm run lint

# Check linting without fixing
$ pnpm run lint:check

# Format code
$ pnpm run format

# Check formatting without fixing
$ pnpm run format:check

# Type checking
$ pnpm run type-check

Commit Message Format

This project follows conventional commit format:

<type>[optional scope]: <description>

Examples:
- feat: add user authentication
- fix(api): resolve CORS issue
- docs: update README
- test: add unit tests for user service

Types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert

License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors