This is the notification-service
, a service designed to send notifications to users of a CRM application.
The notification service is responsible for the integration and handling of notification-related tasks. It is built using Node.js and a variety of other packages to manage tasks such as sending emails and scheduling.
- Sending notifications via email using
nodemailer
. - Task scheduling with
node-cron
. - User IP address tracking with
user-ip
.
To get the service running on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/nil2022/notification_service.git
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and populate it with your environment variables. -
Start the service:
npm start
For development, you can use the following command to start the server with nodemon
for auto-reloading:
npm run dev
express
: For creating the HTTP server.mongoose
: For database management with MongoDB.node-cron
: For scheduling tasks.nodemailer
: For sending emails.dotenv
: For managing environment variables.user-ip
: For capturing the IP address of users.helmet
: For setting security headers.express-rate-limit
: For rate limiting requests.morgan
: For logging requests.
Nilanjan Haldar
Please feel free to submit issues or pull requests to the repository.
If you encounter any bugs, please file them here.
This service is hosted on GitHub. You can access the repository here.