Portal Overview
The Portal is the administrative interface for system administrators and super users to manage organizations, users, and system-wide configurations.
Architecture
The Portal is built with:
- Framework: React 18.3.1 with TypeScript
- Build Tool: Vite for fast development and optimized builds
- Styling: SCSS modules for component-scoped styling
- State Management: React Context and Redux Toolkit
- Routing: React Router with protected routes
Key Features
Multi-tenant Management
- Organization creation and management
- Tenant isolation and data segregation
- Custom branding per organization
- Usage analytics and billing management
User Administration
- System-wide user management
- Role and permission assignments
- User onboarding and offboarding
- Activity monitoring and audit logs
System Configuration
- Global system settings
- Feature flag management
- Integration configurations
- Maintenance mode controls
Monitoring & Analytics
- System health monitoring
- Performance metrics
- Usage statistics across tenants
- Error tracking and logging
Application Structure
apps/portal/
├── src/
│ ├── components/ # Reusable admin components
│ ├── pages/ # Admin page components
│ ├── hooks/ # Custom hooks for admin operations
│ ├── services/ # Admin API service layers
│ ├── store/ # Redux store configuration
│ ├── utils/ # Admin utility functions
│ ├── styles/ # Admin-specific styles
│ └── types/ # Admin TypeScript definitions
├── public/ # Static admin assets
└── package.json # Dependencies and scripts
Access Control
Super Admin Features
- Full system access
- Organization management
- Global configuration changes
- System maintenance operations
Organization Admin Features
- Organization-specific settings
- User management within organization
- Billing and subscription management
- Analytics for their organization
Security Features
- Enhanced Authentication: Multi-factor authentication support
- Audit Logging: Complete activity tracking
- IP Restrictions: Access control by IP addresses
- Session Management: Advanced session controls
- Data Encryption: Sensitive data protection
Administrative Tools
Organization Management
- Create and configure organizations
- Set up custom domains and branding
- Configure subscription plans
- Monitor organization health
User Management
- Bulk user operations
- Role-based access control
- Password policies enforcement
- User activity monitoring
System Monitoring
- Real-time system metrics
- Error rate monitoring
- Performance dashboards
- Resource usage tracking
Integration Management
Third-party Services
- Payment gateway configurations
- Email service integrations
- Storage provider settings
- Analytics service connections
API Management
- Rate limiting configurations
- API key management
- Webhook configurations
- Service health monitoring
Development Workflow
Local Development
# Start development server
nx serve portal
# Run tests
nx test portal
# Build for production
nx build portal
Environment Configuration
- Development: Local services with test data
- Staging: Staging environment with limited permissions
- Production: Full production access with audit logging
Deployment & Operations
Production Deployment
- Blue-green deployment strategy
- Automated rollback capabilities
- Health checks and monitoring
- Backup and disaster recovery
Maintenance Operations
- System updates and patches
- Database maintenance
- Performance optimization
- Security updates
Next Steps
- User Management - Manage system users
- Organization Setup - Configure organizations
- System Configuration - System settings
- Security & Permissions - Security configuration