In the project directory:
Install dependencies:
Considering environment variables defined and docker pre-installed run:
Starts the databases using environment variables defined in .env file.
Check if the name of env variables matches the ones defined in docker-compose.yaml file.
d flag is optional as it runs the command in detached mode
To migrate the models into database run:
To start the service run:
or in watchmode:
To run the tests:
in watchmode:
You can also view the test coverage by running:
It creates the coverage directory with index.html file within your project directory.
You can view the test statistics by opening index.hmtl file inside your browser
To debug the code run:
It opens the debugger in your browsers's inspection window.
You can easily debug the code by inserting debugger into the place you want to inspect
To create the transpiled dist directory run:
It creates the dist folder with commonjs syntax from your source code written in es6 syntax
To remove the dist folder:
Joins above two commands into one: