Giter Site home page Giter Site logo

job-scheduler's Introduction

Job Scheduler

Job Scheduler Logo

This project was a boilerplate creation for a Job Scheduling microservice integrated with Redis. Feel free to use it and modify as you wish.


Technologies used:

  • Node.js
  • Redis
  • Bull
  • Bull Board
  • DotEnv
  • Express
  • Nodemailer
  • Sucrase
  • Nodemon
  • Npm-run-all

Configuration:

After cloning the respository, install the dependencies:

yarn install

or

npm install

Then proceed with the creation of your .Env file to store your environment variables, for Redis and your chosen mail solution:

# Mail Environment Variables

MAIL_HOST=***
MAIL_PORT=***
MAIL_USER=***
MAIL_PASS=***

# Redis Environment Variables

REDIS_HOST=***
REDIS_PORT=***

I used Docker to instantiate my Redis solution, Try it here!

If you opt for docker, here's the Redis version i've used for this project:

docker run --name redis -p 6379:6379 -d -t redis:alpine

Usage:

If you want to test using the same rest client i've used with my settings, you can click the button below:

Run in Insomnia}

The server should run both the queue scheduler and the server itself utilizing:

yarn dev

or

npm dev

Bull Board:

I've added also an option of Admin Dashboard built in the Bull package, it's called Bull Board and it's a good tool to have in hand.

Bull Board PrintScreen

Important: If you opt for utilizing the Bull Board remember to add authentication to your admin/jobs route, otherwise any user should be able to see all your job entries.

job-scheduler's People

Contributors

arthur404dev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pierridev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.