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).
- Node.js v14.19.1,
yarn(v1.22.18) package manager - Java 17 (I used OpenJDK 17.0.2)
- MySQL 8.0.28
- Clone this git repository.
- Install front-end dependencies.
$ cd frontend && yarn- The server needs a connection to a MySQL database. The credentials for this connections are to be provided through
the
.envfile.
$ cd backend/src/main/resources
$ cp .example.env .env- Edit the file with your editor of choice and provide the database credentials.
- The MySQL database itself can be initialized by running the contents of the
backend/initial.sqlfile. - Install the backend requirements.
$ cd backend
$ ./mvnw clean install
$ ./mvnw compile- Run the Vert.x server at
localhost:8080.
$ ./mvnw exec:java- Launch the React server at
localhost:3000.
$ yarn start