backend-assessment
-
Clone backend-assessment repository
$ git clone https://github.com/mickeyleetw/backend-assesmant.git
-
Install project dependencies
$ npm install
-
Setup for database
this assessment needs a database. Run the following command to start a postgres database on
port=5432
(without any built-in data)$ docker-compose -f docker-compose.db.yaml up -d # reset or init db schema $ tsc && node dist/cli.js
-
Run service
# normal mode $ tsc && node dist/app.js
the above commands will boot microservice template service on
http://localhosl:3000
The default response in http://localhosl:3000/health-ckeck path will return the following JSON response{ "message": "Hello World" }
-
Run service on docker
$ docker-compose -f docker-compose.all.yaml up -d