December 2017
Intermediate to advanced
296 pages
5h 56m
English
Now that we are done with the two pieces of software on the cloud, we will be interfacing them. In api-engine/server/config/environment/development.js, we have defined the broker IP and port that the api-engine needs to connect to.
Later on, if we deploy these two pieces on different machines, this is the place where we update the IP and port so the api-engine refers to the broker.
Now, to test the communication, cd into chapter2/broker folder and run the following:
mosca -c index.js -v | pino
And we should see the following:

Next, open a new command prompt/terminal, cd into chapter2/api-engine ...