Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moj124/status-monitor
Displays a real time status dashboard for each region from an API call.
https://github.com/moj124/status-monitor
cypress docker express flyio jest nodejs reactts typescript websockets
Last synced: 21 days ago
JSON representation
Displays a real time status dashboard for each region from an API call.
- Host: GitHub
- URL: https://github.com/moj124/status-monitor
- Owner: moj124
- Created: 2024-08-12T20:35:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T09:52:12.000Z (3 months ago)
- Last Synced: 2024-10-04T21:37:41.517Z (about 1 month ago)
- Topics: cypress, docker, express, flyio, jest, nodejs, reactts, typescript, websockets
- Language: TypeScript
- Homepage: https://status-monitor-snowy-snowflake-524.fly.dev/
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
$ make install
```## Running the app
```bash
# development
$ npm run start:server
$ npm run start# using docker
$ make build
$ make dev
```Open at [http://localhost:8080/](http://localhost:8080/)
## Testing
### Jest
To run jest tests of individual util functions.
```bash
$ make test
```### Cypress
To run cypress GUI tests of react components.
```bash
$ npm run test:cypress:open
```## Deployment with Fly.io
Requires `flyctl` can be installed via [https://fly.io/docs/flyctl/install/](https://fly.io/docs/flyctl/install/).To deploy changes to the server and client.
```bash
$ make deploy
```To deploy changes to the server.
```bash
$ npm run deploy:server
```To deploy changes to the client.
```bash
$ 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.