Microservice project developed using Moleculer API framework fetch the live currency conversion rates for two or more currencies and add them to the cache to be used later by the service calls.
-
Singup up for the 3rd party currency update app. here
-
Update the
priceFetch.service.js
to reflect the URI, your access key and key pair. -
Run
npn install
inside the project folder. -
npm run dev
: Start development mode (load all services locally with hot-reload) -
npm run start
: Start production mode (setSERVICES
env variable to load certain services)
Read the full article : https://cybermemos.com/developent/creating-moleculer-microservice-redis-caching/