/nestjs-db-mysql

Example of an application made in Nestjs to connect to a Mysql database

Primary LanguageTypeScriptMIT LicenseMIT

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

Installation

$ npm install
// or
$ yarn 

Running the app

# start database
docker-compose up
# development
$ npm run start
// or
$ yarn start

# watch mode
$ npm run start:dev
// or
$ yarn start:dev

# production mode
$ npm run start:prod
// or
$ yarn start:prod

Test

# unit tests
$ npm run test
// or
yarn test

# e2e tests
$ npm run test:e2e
// or
$ yarn test:e2e

# test coverage
$ npm run test:cov
// or
$ yarn test:cov

API (GET/POST/PUT/DELETE)

http://localhost:3000/todo
http://localhost:3000/todo/:id

SWAGGER

http://localhost:3000/api

YOUTUBE

Nestjs - Interaction avec une base de données mysql (fr)

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.