AWS SNS Setup and workaround Repository
- Create a Topic
Update
config.json
according to your AWS Credentials
node createTopic.js
- Add Subscribers in created Topic
- Update
TopicArn
inconfig.json
according to your created AWS SNS service Topic.
node createSubscription.js #creates subscription in defined topicARN from config.json
- Confirm subscription in recieved email
git clone https://github.com/Salmandabbakuti/aws-sns-essentials.git
cd aws-sns-essentials
npm i
//update config.json in directory.
node publish.js #Main pub/sub service model -Email Subscriptions
(OR)
cd mobile
//update .env in directory.
npm i
node app.js #mobile notification service irrespective of topic
Created Rest Server for subscriptions and Publishing. Checkout instructions in folder
http/README.md