/pmt-front

心理医疗系统后端项目,基于Nest.js

Primary LanguageTypeScript

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

用到的技术

  • crypto-js
    • 前端用该技术对密码加密传输, 然后这边用约定好的秘钥和偏移量进行解密
  • bcrypt
    • 用该加密方式对传入数据库的密码进行加密,该过程不可逆

synchronize: boolean

  • true 链接数据库时自动创建表
  • false 连接数据库时不自动创建表