npm install
# start the local SQL database
$ docker compose -f docker-compose.db.yml up --build
# start the NestJS application using docker-compose
$ docker compose up --build
# start the NestJS application using npm
$ npm run start:dev
# unit tests
$ npm run unit-test
# api tests
$ npm run api-test
To simplify the generation of new resources, you can use the boilerplate CRUD
nest g resource users
# error
this.logger.error({ id: 'your message here' }, 'context-name');
# log
this.logger.log({ id: 'your message here' }, 'context-name');
The Master Data Management API requires an API Key in order to access its resources.
This can be achieved by providing a randomised API Key as an environment variable (API_KEY
) and a strategy (API_KEY_STRATEGY
) which defines the name of the header passed to the API
The most important prefixes you should have in mind are: