This repository contains the code for this blogpost.
Kindly ensure you have the following installed on your machine:
- Clone the repository
$ git clone https://github.com/ro6ley/node_shop.git
- Check into the cloned repository
$ cd node_shop
- Install the project dependencies:
$ npm install
- Configure AWS CLI
$ aws configure
-
Create queue on AWS SQS dashboard and add queue URL to
./orderssvc/index.js
and./emailssvc/index.js
underqueueUrl
variable. -
Start the Services
$ npm start
- Navigate to http://localhost:8081/order and place an order. Sample
{
"itemName": "Phone case",
"itemPrice": "10",
"userEmail": "[email protected]",
"itemsQuantity": "2"
}
- Check
[email protected]
mail inbox for order confirmation.
Please feel free to raise issues using this template and I'll get back to you.
You can also fork the repository, make changes and submit a Pull Request using this template.