This application "pings" websites every few minutes. It can be used to keep the application alive on e.g. glitch.me or repl.it.
Go to file
MedzikUserBot d27381c48a go mod tidy 2022-07-18 03:08:04 +00:00
.github/workflows chore(deps): update docker/login-action action to v2 2022-06-05 07:54:26 +02:00
cmd/pingbot feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
config update 2021-11-10 13:38:54 +00:00
database/mongo update 2021-11-10 13:38:54 +00:00
ping update 2021-11-10 13:38:54 +00:00
website update 2021-11-10 13:38:54 +00:00
.air.toml chore: nodemon has been replaced by air 2021-11-13 12:51:38 +00:00
.gitignore chore: nodemon has been replaced by air 2021-11-13 12:51:38 +00:00
.gitpod.yml Gitpod change workspace image 2021-10-19 22:43:43 +02:00
.goreleaser.yml feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
.pre-commit-config.yaml update 2021-11-10 13:38:54 +00:00
Dockerfile feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
LICENSE v1.3.0 2021-07-24 09:50:17 +00:00
Makefile chore: nodemon has been replaced by air 2021-11-13 12:51:38 +00:00
README.md doc: domain expired 2022-06-05 07:53:42 +02:00
config.schema.toml perf(config): remove mongodb db and collection from .env 2021-09-08 20:16:02 +00:00
go.mod go mod tidy 2022-07-18 03:08:04 +00:00
go.sum go mod tidy 2022-07-18 03:08:04 +00:00
renovate.json chore(renovatebot): update config 2022-07-06 10:58:23 +02:00
schema.env chore: rename `backend` to `ping` 2021-09-08 20:18:35 +00:00
start.sh chore: nodemon has been replaced by air 2021-11-13 12:51:38 +00:00

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)