A Moleculer-based microservice that stores data in the database.
Generated with the Moleculer CLI.
More information: https://www.youtube.com/watch?v=t4YR6MWrugw
STAGE: https://moleculer-database.herokuapp.com
git clone https://github.com/peterdee/moleculer-database.git
cd ./moleculer-database
nvm use 14.4.0
npm i
The .env
file is required. See the .env.example for more details.
This will launch the services locally:
npm run dev
Services will be available at http://localhost:5522 (you can change the port
in the .env
file).
Docker and Docker-Compose are required for the build.
Build and run the containers:
npm run dc:up
Services will be available at http://localhost:3000 (see the docker-compose.yml
file for details).
Stop containers:
npm run dc:down
The staging
branch is deployed to Heroku automatically.
See the AUTHENTICATION.md for more information about the microservice authentication.
See the APIS.md for more information about the available APIs.