kilgarenone / serverless-microservices

Serverless microservices. API gateway websocket. Dynamodb Streams
https://hungry-kalam-e19a74.netlify.app
2 stars 0 forks source link

serverless-microservices

Development

  1. git clone https://github.com/kilgarenone/serverless-microservices.git
  2. cd serverless-microservices
  3. 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
  4. 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
  5. Then change the endpoints in the .env.* files inside orders-app folder accordingly to yours.

  6. Finally, spin up the client:

    npm run dev

Testing

npm test

API

Get all orders

Create an order

Cancel an order

Resources