Completed

    New City Roleplay — UCP & Admin Panel

    A modern, installable user control panel and admin dashboard for the New City Roleplay SA-MP server, featuring Discord OAuth, PWA/TWA support, push notifications, and Mongo→MySQL migration utilities.

    Category
    SAMP
    Date
    May 1, 2025

    Technologies Used

    ReactTailwind CSSViteNode.jsExpress.jsMySQLDiscord OAuthWeb Push
    New City Roleplay — UCP & Admin Panel

    New City Roleplay — UCP & Admin Panel

    The New City Roleplay — UCP (User Control Panel) is a web-based application built for the New City Roleplay SA-MP server (NCRP).
    It provides players and admins with a robust, installable platform to manage accounts, view updates, receive push notifications, and handle in-game integrations seamlessly.

    This project is actively maintained and forms the backbone of the community management system for NCRP.


    Key Features

    • Discord OAuth (robust flow): Handles idempotent callbacks and duplicate requests from TWA environments.
    • Installable PWA / TWA: Deep-link support with protocol_handlers for web+ncrp.
    • JWT Authentication: Secure token-based auth for persistent sessions.
    • Push Notifications: Category-based subscriptions (server_status, events, faction_updates, premium_offers).
    • Admin Debug Console: Live log capture, XHR/fetch monitoring, runtime error reporting, safe evaluator, and command history.
    • Mongo → MySQL Migration Utilities: Tools for converting legacy patch notes, roles, permissions, and routes into normalized MySQL w_ tables.
    • Clear App Data Tools: Secure two-step reset for cached data and tokens.

    Tech Stack

    • Frontend: React, React Router, Tailwind CSS, Helmet, Vite/CRA
    • Backend: Node.js, Express, Passport (Discord OAuth strategy), JWT
    • Database: MySQL (primary), MongoDB (legacy migration)
    • Push Service: Web Push (VAPID)
    • Optional: Redis (recommended for scaling)
    • Other: Service Workers & Web Manifest for PWA installability

    Project Notes

    • Originally designed for NCRP (New City Roleplay) as a personal project.
    • Still actively maintained and updated with new server integrations.
    • Includes admin panel modules for monitoring and management.

    📅 First deployed: 2025 (actively maintained)

    Related Projects

    Discover more projects with similar technologies or categories.

    PersonalActive

    Minecraft Cat Adventure: Infinite Falling (2D)

    A real-time Phaser + Matter.js survival game where live YouTube chat and keyboard commands directly control gameplay through a resilient command queue and cooldown system.

    Phaser 3Matter.js+7
    View Project
    Full-StackActive

    ZUA Dashboard - Discord Bot Dashboard (MERN)

    A modern MERN-based Discord management dashboard for the ZUA bot, with applications, tickets, moderation tools, analytics, and webhook integrations.

    MySQLExpress.js+7
    View Project
    SAMPCompleted

    New City Roleplay

    A full-featured San Andreas Multiplayer (SA-MP) roleplay gamemode built with Pawn. Includes dynamic jobs, factions, vehicles, admin tools, anti-cheat systems, and continuous updates.

    Pawn (SAMP)MySQL+3
    View Project