/instaminute

This repo is for instaminute assignment

Primary LanguageJavaScript

Instaminutes

cd instaminute_assignemnt

npm install

To run the script type node index.js in terminal after cloning the repo.

Tech Stack

  • Javascript
  • Node.js

Approch To Solve -:

  1. Install Nodejs and download the node-scheduler.
  2. Make a items file, which have list of events in a format of { text: "textOne", dateTime: "2022-03-18 08:10:00.00", }
  3. I used node-scheduler here to find the date and time.
  4. Making reverse function to reverse the text.
  5. For stopping the event used .cancel()

Challenge-:

First I thought that how it will run simple but after sometime i relized it is not that way.Then I google and I found cron, node-cron and node-scheduler.

Learning-:

  1. Learn new npm package node-scheduler also learn node-cron.

Output-:

instaminute