/cryptocurrency-price-alert

This is a service built using NodeJS, ExpressJS, BullMQ, etc to set alerts for cryptocurrency prices. Users will recieve email notification if the current price goes above/below the threshold.

Primary LanguageJavaScript

Product Name Screen Shot

                             language vulnerability repo size node version npm version

Building cryptocurrency price alert service from scratch

Explore the post »

Report Bug · Request Feature

What's inside this repo?

  1. Endpoints to create alerts,to fetch all the active alerts, and to get the current market price.
  2. Job schedulers to remove the expired alerts automatically.
  3. Process alerts using BullMQ
  4. Send email notifications

For a more detailed explanation of the code, you can refer to my article posted on the Medium associated with this project.

Built With

  • Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.
  • Express.js - Minimal and flexible Node.js web application framework
  • BullMQ - BullMQ is a Node.js library that implements a fast and robust queue system built on top of Redis.

Getting Started

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

Prerequisites

To run this project, you'll need to have the following installed:

You can also use Redis server cloud service if you prefer.

Installation

  1. Register at SendGrid and create an API KEY.

  2. Clone the repo :

    git clone https://github.com/PraneshASP/cryptocurrency-price-alert.git
  3. Install dependencies (use sudo if required) :

    npm install
  4. Update project settings in the config.js file.

  5. Start the server :

    npm start