Simo b97a88c561 Reconcile website_* schema to the live AtomCMS DB (amx_test)
Introspected the live DB and fixed real drift between the hand-modeled
schema and the actual columns:
- Added missing @map("snake_case") on camelCase fields that silently
  failed at query time: website_teams (rank_name/hidden_rank/...),
  website_paypal_transactions/user_guestbooks/help_center_tickets(+replies)/
  used_shop_vouchers/maintenance_tasks (user_id), website_rare_values
  (currency_type).
- website_permissions was modeled as key/value/comment but is actually
  permission/min_rank/description — fixed the model + the admin page/action.
- website_shop_articles.icon -> icon_url (+ added category_id, is_giftable);
  updated the shop page + admin shop CRUD.
- website_shop_categories: dropped non-existent slug/timestamps, added the
  real description/order columns; updated the shop page.
- website_shop_article_features.features(Json) -> content(Text).

Verified against amx_test: all website_* query errors gone; home renders
the real hotel_name ("Habbo"), rankings shows real users, /staff + /shop
200. tsc 0, vitest 49/49, next build 0. Remaining missing tables
(radio_*/game_*/staff_activities/alert_logs/article_comments+reactions)
don't exist in this DB and degrade gracefully via try/catch.
2026-06-28 16:35:27 +02:00

atomcms-next

AtomCMS (Laravel) converted to Next.js 16 (App Router) + Prisma 7 against the same Arcturus-emulator MySQL/MariaDB database. Auth via NextAuth (argon2id/bcrypt + md5→argon2id upgrade), RCON to the emulator, full public site + admin panel.

Try it now (no database)

The dev/preview server is already running — open:

http://localhost:3000

Public pages render with fallback defaults (empty data). Login / register / admin need a database (below).

Try it for real (your AtomCMS database)

Point it at your live (or a copy of your) AtomCMS database to log in with real accounts and see real data:

  1. Edit atomcms-next/.env:
    DATABASE_URL=mysql://USER:PASSWORD@HOST:3306/DBNAME
    DATABASE_CONNECT_TIMEOUT_MS=10000
    AUTH_SECRET=any-long-random-string-at-least-32-chars
    HOTEL_NAME=YourHotel
    # Optional emulator link (for RCON: give credits, ban, motto, disconnect):
    RCON_HOST=127.0.0.1
    RCON_PORT=3001
    
  2. Restart the server (pnpm -C atomcms-next start, or pnpm dev).
  3. Log in at /login with any existing account. Staff (rank ≥ min_staff_rank, default 7) get the /admin panel. New users can /register.

It reads the schema you already have — no migrations are run against the emulator tables (introspect/conform only). prisma generate is already done; if you add tables, pnpm -C atomcms-next prisma:generate.

Run it yourself

cd atomcms-next
pnpm install          # already done
pnpm dev              # dev server (hot reload) on :3000
# or:
pnpm build && pnpm start   # production
pnpm typecheck        # tsc --noEmit
pnpm test             # vitest (unit tests)

What's built

  • Public: home, news (+comments/reactions), shop, marketplace, community, rankings, staff, photos, guilds, rares, leaderboard, help (+tickets), profile /u/<name> (badges/photos/guestbook), client launcher /client (SSO ticket), login / register / logout, settings, voucher redeem.
  • Admin (/admin, staff-gated): users (give currency/motto/rank/alert/kick via RCON), rooms, articles, catalog, vouchers, badges, radio, achievements, rare-values, photos, bans, applications, word-filter, IP, logs, teams, housekeeping, permissions, emulator config, email templates, calendar, subscriptions, CMS settings.
  • Core: Prisma data layer (190 models), NextAuth auth core (byte-compatible argon2id/bcrypt/md5 + SSO ticket + Laravel encrypter + TOTP), RCON client + currency service, atom visual theme (self-hosted Nunito).
S
Description
No description provided
Readme CC-BY-SA-4.0
172 MiB
1 Stars 1 Watchers 0 Forks
Languages
TypeScript 95.9%
JavaScript 1.4%
Shell 1.1%
CSS 1.1%
PHP 0.3%
Other 0.1%