This codebase was created spicifically for 11.11.2020 IT Talk.
Environment:
- nodejs v14.x
- redis running locally
Before running you need:
- AWS Account
- Create user for serverless - https://www.youtube.com/watch?v=tgb_MRVylWw&ab_channel=SimplyExplained (I do not recommend God Mode for Serverless in PROD)
- Update your
.aws/credentials
- Enter your accounntId in config files for each service
Running:
cd
into every folder inserverless
(client-service
,consumer-service
,message-service
).serverless deploy
for every folder- In order to clean up your account -
serverless remove
Runnning:
cd ./moleculer/moleculer-demo
npm i
npm run dev
You can also try and deploy it, however I suggest using their initial moleculer-demo
example.
In order to pull it and start use this guide: https://moleculer.services/docs/0.14/usage.html