Skip to content

Sean-Y-X/1centre-interview

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

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

Sean's note:

Get the application report by the following:

http://localhost:3000/application-report
http://localhost:3000/application-report?channel=all
http://localhost:3000/application-report?channel=sales
http://localhost:3000/application-report?channel=website
http://localhost:3000/application-report?channel=qr

As we discussed in the first interview that 1centre has a plan to move its backend to Nest.js, so I chose Nest.js to do the test as well. The dev experience was pretty good, felt easy to set up and handy to use. I simply followed its architecture.

Areas to improve:

  1. Add input validation to the api.
  2. Better error handling.

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published