A web-status monitoring sites that checks whether they are down or not; A NodeJS site that can run without external dependencies.
- Install using the
npm installcommand. - Create the database schema:
- for pSQL database use
schema.sqlfile - for file-system based database
npm run fs_schema)- Set database.database to
'fs'in theconfig.js
- Set database.database to
- for pSQL database use
- Start the web server
npm run start - Go to http://localhost/ in your browser.
See package.json
Some configuration options, such as ports, hashing secret, applicaton name, ... are provided in the config.js.
Static files in the public folder are accessessable via http://localhost/public/*FILENAME* route.
Additional routes can be configured via the router.js and handlers.js.
Templates are served via the getTemplate(TEMPLATENAME) function, and are located in the templates folder.
