Skip to content

VTG Admin Panel

A separate administration interface has been built using FireCMS (v2) to safely manage content and users in Firestore.

🔗 Live Access

https://gkit-vtg-admin.web.app

� Admin Credentials (Test)

Use these credentials to log in for verification: - Email: admin@gkit.no - Password: admin123 (Note: Ensure this user exists in your production database with role: 'admin')

�🔐 Security & Access Control

The admin panel implements a strict Role-Based Access Control (RBAC) system. - It is a separate React application (SPA). - It verifies the authenticated user against the users/{uid} document in Firestore. - Requirement: The user document must have the field "role": "admin". - Users without this role are immediately signed out with an error message.

🛠️ Technology Stack

  • Framework: React + Vite
  • CMS Library: FireCMS v2 (Community Edition - MIT)
  • UI Library: Material UI (v5)
  • Hosting: Firebase Hosting (Site: gkit-vtg-admin)

📂 Source Code

The source code for the admin panel is located in the sibling directory: ../vtg-firecms-admin (relative to the app root).

✨ Features

  • User Management: View and edit user profiles.
  • Content Management: Manage "VTG Innhold" collection (future expansion).
  • Direct Firestore Link: Deep links to Firebase Console for raw data inspection.