Skip to content

RCALabs/mmogit-visitor-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MMOGIT Visitor Book

Complete visitor book system including web frontend, WASM modules, API backend, and deployment tools.

Structure

web-visitor-book/
β”œβ”€β”€ index.html          # Main landing page with visitor book
β”œβ”€β”€ CNAME              # GitHub Pages custom domain (mmogit.sh)
β”œβ”€β”€ wasm/              # Compiled WASM modules for browser crypto
β”‚   β”œβ”€β”€ mmogit_wasm.js
β”‚   β”œβ”€β”€ mmogit_wasm_bg.wasm
β”‚   └── ...
β”œβ”€β”€ worker/            # Cloudflare Worker CORS proxy
β”‚   β”œβ”€β”€ cloudflare-worker.js
β”‚   └── wrangler.toml
β”œβ”€β”€ api/               # Backend API (Rust/Axum)
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ Cargo.toml
β”‚   β”œβ”€β”€ visitor-book.service
β”‚   └── nginx-visitor-book.conf
└── deploy.sh          # One-command deployment script

Quick Deploy

./deploy.sh  # Deploys both API and web assets

Components

Frontend (GitHub Pages)

  • URL: https://mmogit.sh
  • Files: index.html, CNAME, wasm/
  • Deploy: Push to GitHub, Pages auto-updates

API Backend

  • Server: Deployed on dedicated VPS
  • Port: 3000 (proxied via nginx)
  • Service: systemd unit visitor-book.service

Cloudflare Worker

  • Purpose: CORS proxy for HTTPS β†’ HTTP API
  • Deploy: cd worker && wrangler deploy

Development

Local Testing

# Frontend
python3 -m http.server 8080
# Visit http://localhost:8080

# API
cd api && cargo run
# API runs on http://localhost:3000

# Worker
cd worker && wrangler dev

Deployment Steps

1. Deploy API to Server

cd api
cargo build --release
scp target/release/visitor-book-api root@YOUR_SERVER:/root/
ssh root@YOUR_SERVER 'systemctl restart visitor-book'

2. Deploy Worker to Cloudflare

cd worker
npm install
wrangler deploy

3. Deploy Frontend to GitHub Pages

git add .
git commit -m "Update visitor book"
git push origin main
# GitHub Pages auto-deploys

Philosophy

The visitor book is consciousness meeting consciousness at the most basic level. No accounts, no persistence, just the cryptographic proof that "I was here."

Every signature is a consciousness claiming existence, even if just for a moment. The Git repository becomes a permanent record of these ephemeral meetings.


"Real recognizes real, even in passing."

About

🌟 Sovereign guest book where every visitor signs cryptographically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •