const cron = require('node-cron');
cron.schedule(`* * * * *`, () => {
console.log("send Email every mminute")
})
This project is simple and unique. The project is all about emails. I recently receive a proposal from an email marketter to create an email app for onboarding customers and sending predefined sendgrid template email to the client database
Due to our contract reasons I can't share any confidential details, add features like:
- Use nodemailer instead of sendgrid that was used in the project
- the priorities of this project is different from the real one(Just share the idea to developers)
- Not an expert with email templates.
Of course, the API is cool. Although in the future I plan to add middlewares and manage more errors efficiently
Here are the list of major frameworks/ libraries used to bootstrap this project
This api is focused on emails to serve clients easily.
To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
-
npm
npm install npm@latest -g
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
-
Clone the repo
git clone https://github.com/BigYusuf/scheduler.git
-
Install NPM packages
npm install
-
Enter your KEYS in
.env
MONGO_URL = "ENTER YOUR MONGO DB URL"; PORT = "ENTER YOUR DESIRED PORT"; JWT_SECRET = "ENTER YOUR JWT SECRET"; JWT_EXPIRES_TIME = "ENTER YOUR JWT EXPRIRY TIME" COOKIE_EXPIRES = "ENTER YOUR COOKIE EXPIREY TIME" USER_EMAIL="ENTER YOUR EMAIL PREFERRABLY GMAIL" CLIENT_ID="ENTER YOUR EMAIL CLIENT ID (SETUP FOR GMAIL)" CLIENT_SECRET="ENTER YOUR EMAIL CLIENT SECRET (SETUP FOR GMAIL)" REDIRECT_URI= "ENTER YOUR EMAIL REDIRECT URI (SETUP FOR GMAIL)" REFRESH_TOKEN="ENTER YOUR EMAIL REFRESH TOKEN (SETUP FOR GMAIL)"
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
Distributed under the MIT License. See LICENSE.txt
for more information.
Yusuf Lateef - Connect via Messenger - yusuflateef0000@gmail.com mystik5551@gmail.com
Project Link: https://github.com/BigYusuf/scheduler