your repo/microservice-causing-the-issue/code
.your repo/microservice-causing-the-issue/code
in the terminalnpx knex migrate:rollback npx knex migrate:latest npx knex seed:run
your repo/microservice-causing-the-issue/code
in the terminal(powershell terminal)
Remove-Item -Recurse -Force .\node_modules
Remove-Item -Force .\package-lock.json
(bash terminal) rm -rf .\node_modules rm -rf .\package-lock.json
(powershell terminal)
Remove-Item -Recurse -Force .\node_modules
Remove-Item -Force .\package-lock.json
(bash terminal) rm -rf .\node_modules rm -rf .\package-lock.json
In this backend example for a project, a folder is created for each micoservice.
docker compose up
and you are good to goWe use ES6 module system to import and export modules.
We save credentials to other services in a variables.env
file. This file is included in this template. However, it is common use not to include it in a public repository. There are some default key value pairs included to demonstrate its working.
You can change the ports of your server via variables.env
Check the readme files of each container to understand the setup