70 lines
1.7 KiB
Markdown
70 lines
1.7 KiB
Markdown
# Management Portal
|
|
|
|
A dedicated administration interface for the UAMILS drone detection system.
|
|
|
|
## Overview
|
|
|
|
The Management Portal provides a clean, separate interface for system administrators to manage tenants, users, and system configuration. It runs as a dedicated subdomain at `management.dev.uggla.uamils.com`.
|
|
|
|
## Features
|
|
|
|
- **Dashboard**: System overview with statistics and health monitoring
|
|
- **Tenant Management**: Create, edit, and manage tenant organizations
|
|
- **User Administration**: View and manage user accounts across all tenants
|
|
- **System Monitoring**: Monitor system health, SSL certificates, and backups
|
|
- **Secure Access**: Admin-only authentication with role-based access control
|
|
|
|
## Technology Stack
|
|
|
|
- **Frontend**: React 18 + Vite
|
|
- **Styling**: Tailwind CSS
|
|
- **Icons**: Heroicons
|
|
- **Notifications**: React Hot Toast
|
|
- **HTTP Client**: Axios
|
|
- **Routing**: React Router DOM
|
|
|
|
## Development
|
|
|
|
### Prerequisites
|
|
|
|
- Node.js 18+
|
|
- Docker and Docker Compose
|
|
|
|
### Local Development
|
|
|
|
1. Install dependencies:
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
2. Start development server:
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
3. Open http://localhost:5173
|
|
|
|
### Production Build
|
|
|
|
1. Build with Docker:
|
|
```bash
|
|
./build.sh build
|
|
```
|
|
|
|
2. Start production container:
|
|
```bash
|
|
./build.sh start
|
|
```
|
|
|
|
## Docker Deployment
|
|
|
|
The management portal is integrated into the main docker-compose setup and serves at port 3003.
|
|
|
|
## Nginx Configuration
|
|
|
|
The management portal is served via nginx at `management.dev.uggla.uamils.com`. The SSL setup script automatically configures the subdomain routing.
|
|
|
|
## Authentication
|
|
|
|
The management portal requires admin-level authentication. Users must have the `admin` role to access any management features.
|