title | author | date |
---|---|---|
Craft Demo readme |
Yiwei Zhu |
Apr, 25th, 2022 |
It's the repository for intuit A4A craft demo interview. Using nestjs as backend framework. Requirements see here.
backend: nestjs
view: handlebar
database: postgresql
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Visit localhost:3000 to see the webpage.
# unit tests
$ npm run test
More detailed black box tests see postman.
Type | Endpoint | Description |
---|---|---|
Get | /v1/service_id/info | Get a services's aggregated information |
Post | /v1/service_id/data | Add payload to service |
Get | /v1/aggregate?time=5 | Return a html table of aggregated information of records in specific time |
host: crafttestdb.ctriu0r3rcfj.us-east-1.rds.amazonaws.com
port: 5432
user: postgres
password: 12345678
database: test
Docker Hub: yiweizhu/craft-demo:1.0
Two tables: records_v1, services_v1
Nest is MIT licensed.