Skip to content

huanlirui/nestjs-api-tutorial

Repository files navigation

Description

nest 项目基本的操作以及 e2e 测试整个项目的 curd 过程

- orm: prisma

- 数据库:postgresql

- 测试框架:jest

- API 模拟工具:pactum.js

- 环境搭建:docker

- API 客户端 : insomnia insomnia

Nest framework TypeScript starter repository.

视频在这里 -> youtube-freeCodeCamp.org-nest

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
npx prisma studio
npx prisma migration dev

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

if jest cant find absolute path

add "moduleDirectories": ["/../", "node_modules"] in /test/jest-e2e.json

About

learning nestjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published