paulenokels / autochek_test_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Autochek Test Backend Developer Test

Installation

$ npm install

Database Configuration

This project uses Postgres Database

  1. open ormconfig.json to input your database parameters

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Watch Out

  1. The postman request sample is included (autochek.postman_collection.json)
  2. Validation Pipeline is setup in main.ts to validate incoming requests

Improving the App

  1. The app can be improved by adding an authentication mechanism, so that only authorized persons can perfrom certain actions.

  2. Pagination can also be added when the list of location grows large.

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Stay in touch

About


Languages

Language:TypeScript 94.0%Language:JavaScript 6.0%