Skip to content

loongzhu/nest-template

Repository files navigation

Nest Logo

Description

A template for creating a server-side application using Nest and TypeScript.

A simple application that allows you to create, read, update and delete users.

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# hmr mode
$ pnpm run start:hmr
$ pnpm run start:webpack

# production mode
$ pnpm run start:prod

Change db

# db generate
$ pnpm run db:generate

# db migration
$ pnpm run db:migrate

# db push
$ pnpm run db:push

# db pull
$ pnpm run db:pull

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Dependencies

  • Nest - A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
  • Typescript - TypeScript is a language for application-scale JavaScript.
  • Zod - TypeScript-first schema validation with static type inference
  • Prisma - Next-generation Node.js and TypeScript ORM.
  • Dayj.s - Fast 2kB alternative to Moment.js with the same modern API
  • RxJS - A reactive programming library for JavaScript
  • CORS - CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
  • CryptoJS - JavaScript implementations of standard and secure cryptographic algorithms
  • Swagger UI Express - Adds middleware to your express app to serve the Swagger UI bound to your Swagger document.
  • Webpack - webpack is a static module bundler for modern JavaScript applications.
  • Jest - Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
  • Eslint - Find and fix problems in your JavaScript code
  • Prettier - Prettier is an opinionated code formatter

License

Nest is MIT licensed.