OutdatedVersion / health-check-exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Health checks

System for running simple HTTP health checks.

This knocks out a fairly specific set of criteria though leaves the door open for extensibility and refactoring. New checks can be added in src/health.ts.

There is an approach with a fully evented runner system available in the commit history which totally decouples job run time from the runner. Though it was abandoned in favor of simpler.

How to đź’»

  1. Verify Node.js >= 18 is installed: node --version
  2. Clone project
  3. Run npm clean-install
  4. Run npm start
    • You can also run it directly with npm run build && node dist/cli.js
    • Set DEBUG=health-check:runner environment variable for more context, if you'd like
  5. Run the tests: npm test

About

License:MIT License


Languages

Language:TypeScript 100.0%