Documentation
How to set up and run HyperGo locally or with Docker.
Quick Start (Docker)
- Clone the repo:
git clone https://github.com/geeth24/hypergo.git cd hypergo - Start services:
docker compose up -d - Access:
- Frontend:
http://localhost:3002 - API/Redirect:
http://localhost
- Frontend:
Local Development
Server (Go)
cd server go run ./cmd/hypergo/main.goClient (Next.js)
cd client pnpm install pnpm devSet NEXT_PUBLIC_API_URL to your API, e.g. http://localhost:8079.
Environment Variables
Server
PORT(default:8079)DATABASE_URL(default:postgres://postgres:postgres@localhost:5432/hypergo)REDIS_URL(default:localhost:6379)REDIS_PASSWORD(default: empty)REDIS_DB(default:0)
Client
NEXT_PUBLIC_API_URL– API base URL
API Overview
GET /api/health— Health checkGET /api/shortcuts— List all shortcutsPOST /api/shortcuts— Create a shortcutGET /api/shortcuts/:shortcode— Shortcut detailsPUT /api/shortcuts/:shortcode— Update URLPOST /api/shortcuts/bulk— Details in bulkGET /:shortcode— Redirects and increments clicks
Deploy
Use Docker Compose or your favorite platform. Ensure the client env NEXT_PUBLIC_API_URL points to your API host (e.g., LAN IP).
Repository: geeth24/hypergo
Optional: Add go host for easy access
Map go to your server IP so you can use URLs like http://go/your-shortcode.
macOS/Linux
From the repo root, run (may prompt for sudo):
./add-go-host.shWindows
Open Command Prompt as Administrator and run:
add-go-host.batBy default these scripts add 192.168.1.71 go. Update the IP in the scripts to match your server if different.
For more details, see the README in the repository.