/status-monitor

Displays a real time status dashboard for each region from an API call.

Primary LanguageTypeScript

Status Monitor

A ReactJS + TS, Express + TS monolith applicaton that houses the server and client. Displays a real time status dashboard for each region from an API call.

Installation

$ make install

Running the app

# development
$ npm run start:server
$ npm run start

# using docker
$ make build
$ make dev

Open at http://localhost:8080/

Testing

Jest

To run jest tests of individual util functions.

$ make test

Cypress

To run cypress GUI tests of react components.

$ npm run test:cypress:open

Deployment with Fly.io

Requires flyctl can be installed via https://fly.io/docs/flyctl/install/.

To deploy changes to the server and client.

$ make deploy

To deploy changes to the server.

$ npm run deploy:server

To deploy changes to the client.

$ npm run deploy

Issues to address

  • Request URL: wss://status-monitor-snowy-snowflake-524.fly.dev:8080/ws multiple requests are appearing resulting in timeout error connections in console window. Check websocket polling.