Moleculer is a progressive microservices framework for Node.js.
Website: https://moleculer.services
Documentation: https://moleculer.services/docs
In order to understand the project stack is important to understand:
Install dependencies:
This project requires node version 10.16.1. You can use NVM to select the correct version of node.
cd APIGateway
nvm use
yarn install
cd FirstMoleculer
nvm use
yarn install
Create a .env file, copy the .env.dev file and rename to .env and setup your configuration to the .env file.
Run the project from the command line for development:
cd FirstMoleculer
nvm use
yarn run dev
In a other terminal
cd APIGateway
nvm use
yarn run dev
cd FirstMoleculer
./docker-build <username>/<name> <tag>
cd APIGateway
./docker-build <username>/<name> <tag>
If you change the project and you run a build then change the images on docker-compose.yml on root folder
Exec:
docker-compose up