Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.21 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.21 KB

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}