This repository contains the Angular web application for Seravian, a mental health support platform developed as a Graduation Project by Computer Science students (2024–2025).
The web application provides a responsive and intuitive interface for users to access AI-powered mental health support, emotional analysis, and diagnostic tools. It communicates with the Seravian backend API to deliver seamless real-time chat experiences and comprehensive mental health assessments across all devices.
- Language: TypeScript
- Framework: Angular 18
- UI Framework: Bootstrap + Native CSS
- Build Tool: Angular CLI
- HTTP Client: Angular HttpClient
- Real-time Communication: SignalR Client
- State Management: NgRx
- Routing: Angular Router
- Authentication: Angular AuthGuard
- Package Manager: npm
- Backend Integration: RESTful APIs + Real-time SignalR connections
| Feature | Description |
|---|---|
| Screenshots will be added here | Access help resources and mental support |
| Screenshots will be added here | Real-time messaging interface with AI assistant |
| Screenshots will be added here | Comprehensive psychological assessments and reports |
- 🤖 AI-Powered Mental Health Support - Advanced conversational AI for emotional support
- 💬 Real-time Chat - Instant messaging with intelligent response suggestions
- 📊 Mental Health Diagnostics - Comprehensive psychological assessments and reports
- 🔒 Secure Authentication - JWT-based authentication with email OTP verification
- 📱 Responsive Design - Optimized for desktop, tablet, and mobile devices
- 🌙 Modern UI/UX - Clean and intuitive interface with Bootstrap styling
- ⚡ Real-time Updates - Live chat updates using SignalR connections
- 🔐 Route Protection - Secure routing with Angular AuthGuard
To build and run this project, make sure to have the following dependencies:
- ✅ Node.js (Latest LTS version)
- ✅ Angular CLI (Version 18.0.0+)
- ✅ TypeScript (Latest version)
- ✅ npm (comes with Node.js)
-
Clone the repo:
git clone https://github.com/seravian-org/Seravian-Web.git cd Seravian-Web -
Install dependencies:
npm install
-
Configure API Endpoints:
Update the environment files in
src/environments/with your backend API configuration:// src/environments/environment.ts export const environment = { production: false, apiUrl: 'your_development_api_url_here', };
// src/environments/environment.prod.ts export const environment = { production: true, apiUrl: 'your_production_api_url_here', };
-
Start the development server:
ng serve
Navigate to
http://localhost:4200/. The application will automatically reload if you change any of the source files. -
Build for production:
ng build --configuration=production
This project is automatically deployed to Netlify with continuous integration:
- Live URL: https://seravian.netlify.app
- Auto-Deploy: Pushes to the main branch automatically trigger new deployments
- Build Command:
ng build --configuration=production - Publish Directory:
dist/seravian
-
Build the project:
ng build --configuration=production
-
Deploy the
dist/folder to your preferred hosting service (Netlify, Vercel, Firebase Hosting, etc.)
The application uses Angular's environment system for configuration:
| File | Description | Usage |
|---|---|---|
environment.ts |
Development environment settings | Local development |
environment.prod.ts |
Production environment settings | Production builds |
- JWT Token Management: Automatic token refresh and storage
- Route Guards: Protected routes using Angular AuthGuard
- Email OTP Verification: Secure user authentication flow
- Session Management: Automatic logout on token expiration
- SignalR Integration: Real-time chat messaging
- Live Updates: Instant message delivery and status updates
- Connection Management: Automatic reconnection on network issues
- Responsive Design: Bootstrap-based responsive layout for all screen sizes
- Modern Interface: Clean and intuitive user experience
- Accessibility: WCAG compliant design with proper ARIA labels
- Cross-browser Compatibility: Supports all modern browsers
- Progressive Web App: PWA capabilities for enhanced mobile experience
This web application is part of the Seravian GitHub organization, which includes:
Seravian-Web(Angular)Seravian-Backend(ASP.NET Core)Seravian-App(Kotlin – Android)Seravian-AI(FastAPI + Python)
📌 Note: While the platform is a team project,
🌐 this web application was collaboratively developed by:
- 🧑💻 Abdalrhman Alhrery
- 🧑💻 Khalid Mohamed
Elastic License v2.0 – see LICENSE