somosphi / nestjs-seed

Seed API with Nest framework + TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badge Coverage Status

Nest Logo

Description

Seed API with Nest framework TypeScript, a progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

Features

  • Job for to sync users by integration jsonplaceholder with the project database.
  • Apm logger.
  • Config validation load env.
  • Request validation with class-validator
  • Routes for users, list all users, get user and to sync a user.

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

How use test:e2e

End-to-end testing, such as description information, is used to test all application components, service layer, integration layer, database layer, and more.

To use the test: e2e with successfully is required create a test database with name ending with _test.

for exemple:

seed_nestjs

seed_nestjs_test

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.

Maintainers

License

Copyright (c) 2017 4all Tecnologia

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Seed API with Nest framework + TypeScript


Languages

Language:TypeScript 96.8%Language:JavaScript 3.2%