Skip to content

sinner/nest-test-project

Repository files navigation

Nest Logo

It is a seed web API based application made using Node.js and nest.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

Description

Nest framework TypeScript starter project.

Installation

The first step should be copy the .env.dist into .env.

$ cp .env.dist .env

The second step should be review the .env file and assign the variable of your relational database connection and create the database with its proper name.

The thirs step should be install the npm libraries required by the project and run the migrations.

$ npm install
$ ts-node ./node_modules/.bin/typeorm migration:run -t false

You could enter on the API documentation clicking on the Swagger interface http://localhost:3000/api/index.html#/.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# incremental rebuild (webpack)
$ npm run webpack
$ npm run start:hmr

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Create & Run Migrations

ts-node ./node_modules/.bin/typeorm migration:generate -n User
ts-node ./node_modules/.bin/typeorm migration:run -t false

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.

About

Nest framework TypeScript starter project. (JWT, INTL, Swagger, TypeORM, Caching with Redis, DI...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published