nest-typeorm-sample

Stars
1

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.


Sample App Setups

Pre Requisites

yarn global add @nestjs/cli

mkdir my-app
cd my-app
nest new 
yarn install

Adding New Module

nest g mo articles
nest g s articles
nest g co articles

Create DB

create database nestsample;
create user nestuser identified with mysql_native_password by 'nestpass';
grant all privileges on nestsample.* to nestuser;
flush privileges;