Eventpass Country Master
Nest project for Eventthai pre-interview test.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
See Project Configuration Documentation
Set SERVER_IS_ENABLE_DOCS
environment variable to true and view at http://{hostpath}:{SERVER_PORT}/{API_ROUTE_DOC}
Country has to be added into the database before the user can be created, use the following MongoDB statement to insert starter country into the database
db.countries.insertMany([
{
"code": "TH",
"name": "Thailand"
},
{
"code": "EN",
"name": "England"
}
]);