Initial commit: UOMysticmoon backend (Express + MariaDB + JWT)

- Layered API (router -> controller -> model -> db), serverlinkr pattern
- Public / auth / admin route groups; posts, wiki, settings, users, activity models
- JWT httpOnly-cookie auth (Secure auto-detected: LAN HTTP + Pangolin HTTPS)
- Site LIVE/MAINTENANCE mode with admin preview bypass
- Dual file+console logging (info/warn/error/debug) + HTTP access logs
- Docker Compose (app + MariaDB), schema.sql + seed, .env.example
- Verified end-to-end against MariaDB (27/27 smoke checks)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 20:58:32 -05:00
commit eef79e2403
41 changed files with 4195 additions and 0 deletions

19
package.json Normal file
View File

@@ -0,0 +1,19 @@
{
"name": "uomysticmoon-website",
"version": "1.0.0",
"description": "UOMysticmoon — public site, wiki, and admin panel for a private Ultima Online shard",
"private": true,
"scripts": {
"install-server": "npm install --prefix server",
"install-client": "npm install --prefix client",
"install-all": "npm run install-server && npm run install-client",
"server": "npm run dev --prefix server",
"client": "npm run dev --prefix client",
"seed": "npm run seed --prefix server",
"build": "npm run build --prefix client",
"start": "npm start --prefix server"
},
"keywords": ["express", "mariadb", "react", "vite", "jwt"],
"author": "whitlocktech",
"license": "ISC"
}