nikshinde1996 / uptime-monitor

no-npm, no-frameworks, old-style-js library implemented to monitor website uptimes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uptime-monitior - no framework, no npm.

Development CheckPoints

  • The API listens on PORT and accepts incoming HTTP requests for POST, GET, PUT, DELETE and HEAD.
  • The API allows client to connect, create a new user , then edit and delete the user.
  • The API allows users to sign in, which gives them tokens that they can use for subsequent authentication requests.
  • The API allows users to sign out, which invalidates their token.
  • The API allows a signed-in user to use their token to create a new check.
  • The API allows signed-in user to EDIT or DELETE any of their checks.
  • In background, workers perform all the checks at appropriate times and send alerts to the users when site goes up/down. These notification alerts can be in following formats :-
    • SMS notification.
    • Email notification.
    • Realtime desktop alert.
  • CLI support

Installation

node index.js

Localhost url : http://localhost:3000

CLI - Commands

  • man
  • help
  • exit
  • stats
  • list users
  • more user info --{userId}
  • list checks {optional : --up --down}
  • more check info --{checkId}
  • list logs
  • more log info --{logFileName}

About

no-npm, no-frameworks, old-style-js library implemented to monitor website uptimes


Languages

Language:JavaScript 85.9%Language:HTML 10.4%Language:CSS 3.7%