https://github.com/umihnea/poller
Online service availability monitor with Java Vertx-based backend and React front-end
https://github.com/umihnea/poller
react vertx
Last synced: 19 days ago
JSON representation
Online service availability monitor with Java Vertx-based backend and React front-end
- Host: GitHub
- URL: https://github.com/umihnea/poller
- Owner: umihnea
- Created: 2022-04-03T18:58:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T19:11:46.000Z (almost 4 years ago)
- Last Synced: 2025-02-24T11:14:00.528Z (about 1 year ago)
- Topics: react, vertx
- Language: Java
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## poller
Prototype for an (Internet) service availability monitor. Composed of a Vert.x Java backend service spawning a pool of
polling verticles and a rudimentary React front-end (with Redux as state manager).
### Requirements
1. Node.js v14.19.1, `yarn` (v1.22.18) package manager
2. Java 17 (I used OpenJDK 17.0.2)
3. MySQL 8.0.28
### Installation
1. Clone this git repository.
2. Install front-end dependencies.
```bash
$ cd frontend && yarn
```
3. The server needs a connection to a MySQL database. The credentials for this connections are to be provided through
the `.env` file.
```bash
$ cd backend/src/main/resources
$ cp .example.env .env
```
4. Edit the file with your editor of choice and provide the database credentials.
5. The MySQL database itself can be initialized by running the contents of the `backend/initial.sql` file.
6. Install the backend requirements.
```bash
$ cd backend
$ ./mvnw clean install
$ ./mvnw compile
```
### Usage
1. Run the Vert.x server at `localhost:8080`.
```bash
$ ./mvnw exec:java
```
2. Launch the React server at `localhost:3000`.
```bash
$ yarn start
```