Skip to content

VoDinhNghia/library-service

Repository files navigation

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

  Init project nestjs with mysql

Environment

- mysql: 8.0.19
- After install mysql finish => create database (mgt_library) => run cmd: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

Document and reference (nestjs, mysql)

- https://docs.nestjs.com/techniques/database
- https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Swagger api

http://localhost:3002/api-docs-library

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.

Releases

No releases published

Packages

No packages published