git clone https://github.com/kilgarenone/serverless-microservices.git
cd serverless-microservices
Change into the directories that have package.json
to install their dependencies for local development:
cd orders-app
npm install
cd orders-service
npm install
Assuming you already setup 'serverless framework' in your machine, change into each of the *-service
folder and deploy it as a 'serverless microservice'. For example, to deploy the orders-service
:
cd orders-service
serverless deploy
Then change the endpoints in the .env.*
files inside orders-app
folder accordingly to yours.
Finally, spin up the client:
npm run dev
npm test