Monitor websites status
- Custom poll frequency
- Monitor availability, average/standard deviation latency, total uptime/downtime
- JWT Authentication
- Ant Design
Requirements:
- JDK 8
- Node 8
- Docker
- Gradle
Clone repository
$ git clone https://github.com/Nalad/uptime.git
$ cd uptime
Run database
$ cd database
$ docker image build -t database:dev .
$ docker run -e POSTGRES_DB="uptime" -e POSTGRES_USER="postgres" -e POSTGRES_PASSWORD="postgres@123" -p 5432:5432 database:dev
Run backend
$ cd backend
$ gradle wrapper
$ ./gradlew build
$ java -jar ./build/libs/pompom-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev
Run frontend
$ cd frontend
$ npm install
$ npm run dev
Export environment variables: POSTGRES_DB
, POSTGRES_USER
, POSTGRES_PASSWORD
$ docker volume create uptime-pgdata
$ docker-compose up
All API requests are prefixed with api
.
API requests require JWT token in Authorization Header.
Return a list of all checks with polls
Create a new check
Parameters:
uri
: URL of the checkname
: name of the checkinterval
: interval of polling
Delete the check
Parameters:
name
: name of the check