not so small webring backend, written in go
Go to file
2025-08-08 16:24:10 +03:00
.github/workflows Enhance template rendering and Telegram username validation, updated cicd 2025-08-08 16:24:10 +03:00
cmd/server minor design update, mixed auth, reorder fix, notifications 2025-07-16 15:44:17 +03:00
docs minor changes 2025-07-15 17:40:05 +03:00
internal Enhance template rendering and Telegram username validation, updated cicd 2025-08-08 16:24:10 +03:00
migrations Enhance template rendering and Telegram username validation, updated cicd 2025-08-08 16:24:10 +03:00
static minor design update, mixed auth, reorder fix, notifications 2025-07-16 15:44:17 +03:00
.air.toml minor changes 2025-07-15 17:40:05 +03:00
.env.template minor changes 2025-07-15 17:40:05 +03:00
.gitguardian.yml Enhance template rendering and Telegram username validation, updated cicd 2025-08-08 16:24:10 +03:00
.gitignore added favicon for sites, list all sites api and page, disabled cors for api, minor fixes 2024-07-17 02:48:53 +03:00
.golangci.yml minor changes 2025-07-15 17:40:05 +03:00
Dockerfile minor changes 2025-07-15 17:40:05 +03:00
embedded.go minor changes 2025-07-15 17:40:05 +03:00
go.mod added favicon for sites, list all sites api and page, disabled cors for api, minor fixes 2024-07-17 02:48:53 +03:00
go.sum added favicon for sites, list all sites api and page, disabled cors for api, minor fixes 2024-07-17 02:48:53 +03:00
Makefile updated cicd 2025-07-15 17:56:46 +03:00
README.md feat: Implement slugs and id reordering (#2) 2025-06-19 14:34:18 +03:00

Webring Relay Service

This project is a webring relay service built with Go. It manages a list of websites, checks their uptime, and provides a dashboard for administration.

Features

  • Dashboard for managing websites in the webring
  • Automatic uptime checking of websites (with proxy support)
  • API endpoints for navigating the webring
  • Basic authentication for the dashboard

Prerequisites

  • Go 1.16 or later
  • PostgreSQL database

Installation

edit .env to set correct path to database

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
go mod tidy
cp .env.template .env
make migrate-up

Local Run

go run cmd/server/main.go

or download prebuild version

wget https://github.com/Alexander-D-Karpov/webring/releases/latest/download/webring
chmod +x webring
./webring

Usage

  • Access the dashboard at http://localhost:8080/dashboard (use the credentials set in your .env file)
  • API endpoints:
    • Next site: GET /{slug}/next/data
    • Previous site: GET /{slug}/prev/data
    • Random site: GET /{slug}/random/data
    • Full data for a site: GET /{slug}/data
  • Redirect endpoints:
    • Visit site: GET /{slug}
    • Next site: GET /{slug}/next
    • Previous site: GET /{slug}/prev
    • Random site: GET /{slug}/random