This application "pings" websites every few minutes. It can be used to keep the application alive on e.g. glitch.me or repl.it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Oskar 8cc6799e34
chore(docs): update readme
6 days ago
.github/workflows Create codeql-analysis.yml 1 month ago
cmd/pingbot feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 3 weeks ago
config update 4 weeks ago
database/mongo update 4 weeks ago
ping update 4 weeks ago
website update 4 weeks ago
.air.toml chore: nodemon has been replaced by air 3 weeks ago
.gitignore chore: nodemon has been replaced by air 3 weeks ago
.gitpod.yml Gitpod change workspace image 2 months ago
.goreleaser.yml feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 3 weeks ago
.pre-commit-config.yaml update 4 weeks ago
Dockerfile feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 3 weeks ago
LICENSE v1.3.0 5 months ago
Makefile chore: nodemon has been replaced by air 3 weeks ago
README.md chore(docs): update readme 6 days ago
config.schema.toml perf(config): remove mongodb db and collection from .env 3 months ago
go.mod fix(deps): update module github.com/gin-gonic/gin to v1.7.7 2 weeks ago
go.sum go mod tidy 2 weeks ago
renovate.json update 3 months ago
schema.env chore: rename `backend` to `ping` 3 months ago
start.sh chore: nodemon has been replaced by air 3 weeks ago

README.md

Pingbot - Backend

Repo Size Build

This application "pings" websites every few minutes (to be set in config). It can be used to keep the application alive on e.g. glitch.me or repl.it.

Install Pre-Compile binary

  • 💻 Linux amd64
    • Download latest version
    • Unpack file tar xf pingbot_*_linux_amd64.tar.xz
    • Done your binary is pingbot.out

👨‍💻 Compile from Source Code

‼️ Not recommended because automatic updates don't work

🖥️ Requirements

  • Go (recommended latest version)

Compile

Method 1:

  • go install github.com/medzikuser/go-pingbot@latest
  • Output binary path
    • Check GOPATH go env GOPATH
    • Go to GOPATH and binary name is pingbot

Method 2:

  • Download source code git clone https://github.com/medzikuser/go-pingbot.git --depth 1
  • Go to folder with source code cd go-pingbot
  • Build make or go build -o pingbot.out
  • Done your compiled binary name is pingbot.out

Cross Compile

Check supported OS and ARCH

  • Download source code git clone https://github.com/medzikuser/go-pingbot.git --depth 1
  • Go to folder with source code cd go-pingbot
  • Build make GOOS=os GOARCH=arch
    • e.g. make GOOS=openbsd GOARCH=arm64
  • Done your cross compiled binary name is pingbot.out

⚙️ Configurate

  • Complete .env according to schema.env
  • And fill in config.toml according to config.schema.toml

🔧 Run

  • ./pingbot.out or ./start.sh (auto restart e.g. if exit on update is enabled)