The frontend component of the Aslan AI Mental Health Support Platform. This web application provides an intuitive interface for users to interact with our AI-powered emotional support system.
- User Authentication (Login/Register)
- Real-time Chat Interface
- Emotion Detection & Display
- Token Usage Tracking
- Responsive Design
- Dark/Light Theme Support
Aslan-FE-main/
├── index.html # Main HTML file
├── styles.css # Global styles
├── script.js # Main JavaScript file
├── shared/ # Shared utilities
│ └── validation.js # Shared validation rules
└── images/ # Image assets
- Clone the repository
- Open
index.html
in your browser - Make sure the backend server is running at
https://aslan-be.onrender.com
The frontend is designed to work with the Aslan AI backend. It expects the following endpoints:
/api/auth/login
- User login/api/auth/register
- User registration/api/chat/session
- Start chat session/api/chat/message
- Send/receive messages/api/chat/history
- Get chat history/sentiment/analyze
- Sentiment analysis
To run the project locally:
- Use a local server (e.g.,
python -m http.server
or Live Server in VS Code) - Open
http://localhost:8000
in your browser
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request