Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumeetgodse/scalableservicesassignment_notificationservice
Email Notification Microservice
https://github.com/sumeetgodse/scalableservicesassignment_notificationservice
bits-pilani expressjs javascript microservice mongodb scalable-services
Last synced: 25 days ago
JSON representation
Email Notification Microservice
- Host: GitHub
- URL: https://github.com/sumeetgodse/scalableservicesassignment_notificationservice
- Owner: sumeetgodse
- Created: 2024-11-16T15:05:52.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:50:05.000Z (about 1 month ago)
- Last Synced: 2024-11-16T17:28:11.482Z (about 1 month ago)
- Topics: bits-pilani, expressjs, javascript, microservice, mongodb, scalable-services
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Scalable Services - Notification Microservice
### This microservice sends email notification using `nodemailer`
#### Steps to run locally
- Clone this project
- Run `npm install` (only for 1st time)
- Run `npm start`
- create a `.env` with following contents in project root
`USERS_DATABASE_URL=mongodb://localhost:27017/serviceUsers``NOTIFIER_EMAIL=SENDER_EMAIL_ID_HERE`
`NOTIFIER_PASSWORD=APP_PASSWORD`
- `NOTIFIER_PASSWORD` should be the app password created from https://myaccount.google.com/apppasswords
#### App should now be running on `http://localhost:3006`
### Setup Mongodb locally using all default settings from below link
https://www.mongodb.com/try/download/community
![image](https://github.com/user-attachments/assets/b2063aae-1269-4d0c-b282-f5e017df86dc)### Call /notify with Postman
#### SUCCESS
![image](https://github.com/user-attachments/assets/7e6d2d3e-7a5a-462f-9c4a-815fb1e10207)
#### FAILED
![image](https://github.com/user-attachments/assets/67c4b171-74d9-4c8a-95da-85f364a5ef16)