monitor
: A NodeJS cli applicatonpublic
: Location for built files to include for the webhostwebsite
: A svelte js application using tailwindcss Only the reactive parts of the application are rendered by svelte the loading html is directly written inindex.html
It is expected that you have installed NodeJS on your computer.
1. Monitor
- Open a terminal in
./monitor
- Run
npm install
to install dependencies
2. Website
- Open a terminal in
./website
- Run
npm install
to install dependencies
1. Monitor
- Open a terminal in
./monitor
- Run
npm run dev
to runs the cli program.
2. Website
- Open a terminal in
./website
- Run
npm run dev
to run website in localhost:3000
- Open a terminal at the root of this project
- Change dir to website
cd website
- Run
npm run ci
- Change dir to monitor
cd ../monitor
- Run
npm run ci:topublic
- The result is inside
public
start
:get `config.json`;
:get sites csv;
while(for each site)
:find csv records
till 1, 7 or 30 days ago;
:calculate average milliseconds of 7 days;
:calculate percentage uptime of 7 days;
endwhile
:html is loaded;
:generate html;
:generate chart;
stop