Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonatan-ivanov/checkthat

Collection of checkers to test servers/services/etc. through REST API.
https://github.com/jonatan-ivanov/checkthat

hacktoberfest

Last synced: about 2 months ago
JSON representation

Collection of checkers to test servers/services/etc. through REST API.

Awesome Lists containing this project

README

        

[![Build Status](https://github.com/jonatan-ivanov/checkthat/actions/workflows/gradle.yml/badge.svg)](https://github.com/jonatan-ivanov/checkthat/actions)

# What's this?
Collection of checkers to test servers/services/etc. through Web API packed in a standalone jar. [Check Examples](#online-demo)

# Requirements
* JDK 18

# How to build it
`./gradlew build`

# How to use it
## Run with Gradle
1. Build and start: `./gradlew bootRun`
2. Open your browser: [Check Examples](#local-demo)

## Build and run it
1. Build: `./gradlew assemble`
2. Start: `java -jar build/libs/*.jar`
3. Open your browser: [Check Examples](#local-demo)

# Examples
## Online demo
- Check http(s) endpoint: [https://checkthat.herokuapp.com/url/https://github.com](https://checkthat.herokuapp.com/url/https://github.com)
- Check open port: [https://checkthat.herokuapp.com/url/socket://github.com:80](https://checkthat.herokuapp.com/url/socket://github.com:80)
- Check host by ping: [https://checkthat.herokuapp.com/server/github.com](https://checkthat.herokuapp.com/server/github.com)
- Check open ports (only one port): [https://checkthat.herokuapp.com/socket/github.com:80](https://checkthat.herokuapp.com/socket/github.com:80)
- Check open ports (multiple ports): [https://checkthat.herokuapp.com/sockets/github.com:80..82](https://checkthat.herokuapp.com/sockets/github.com:80..82)

## Local demo
- Check http(s) endpoint: [http://localhost:8080/url/https://github.com](http://localhost:8080/url/https://github.com)
- Check open port: [http://localhost:8080/url/socket://github.com:80](http://localhost:8080/url/socket://github.com:80)
- Check host by ping: [http://localhost:8080/server/github.com](http://localhost:8080/server/github.com)
- Check open ports (only one port): [http://localhost:8080/socket/github.com:80](http://localhost:8080/socket/github.com:80)
- Check open ports (multiple ports): [http://localhost:8080/sockets/github.com:80..82](http://localhost:8080/sockets/github.com:80..82)

## Specify port
```
./gradlew bootRun -Dport=9000
java -Dport=9000 -jar build/libs/*.jar
```

# Docker
- Build image: `./gradlew bootBuildImage`
- Build image and run: `./gradlew bootDockerRun`