/scheduler

scheduler

Primary LanguageJavaScriptMIT LicenseMIT

scheduler


Cron Email Scheduler!
Explore the docs »

View Demo · Report Bug · Request Feature

About The Project

    
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

(back to top)

Built With

Here are the list of major frameworks/ libraries used to bootstrap this project

(back to top)

Features

This api is focused on emails to serve clients easily.

Verification Email

Sample Email

Reset password Email

Mobile screen

Promotional Email

Desktop Mode

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

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

Installation

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.

  1. Clone the repo

    git clone https://github.com/BigYusuf/scheduler.git
  2. Install NPM packages

    npm install
  3. 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)"

(back to top)

Usage

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

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Yusuf Lateef - Connect via Messenger - yusuflateef0000@gmail.com mystik5551@gmail.com

Project Link: https://github.com/BigYusuf/scheduler

(back to top)