Mentalys API is a comprehensive solution designed for mental health analysis through multiple approaches. Built with TypeScript and Express.js, this API integrates machine learning models to process questionnaires, audio samples, and handwriting analysis, providing valuable mental health insights.
- Backend: Express.js with TypeScript
- Authentication: Firebase Authentication
- Database: Cloud Firestore
- Cloud Services: Google Cloud Platform
- ML Models: Python-based analysis tools
Development: http://localhost:3000/api
For complete API documentation, visit Swagger UI:
Development: http://localhost:3000/api-docs
or Download this full documentation: Download Rest API Documentation
Feature | Description |
---|---|
Mental Health Quiz | Comprehensive questionnaire analysis for mental health assessment |
Voice Analysis | Advanced voice pattern analysis for mental state detection |
Handwriting Analysis | Sophisticated handwriting analysis for personality insights |
History Tracking | Detailed tracking of analysis history |
User Management | Secure Firebase-based authentication and profile system |
### Authentication
| Method | Endpoint | Description |
|--------|-----------------------|---------------------------|
| POST | `/auth/register` | User Registration |
| POST | `/auth/login` | User Login |
| POST | `/auth/reset-password`| Password Reset Request |
### Profile Management
| Method | Endpoint | Description |
|--------|-----------------------|---------------------------|
| PUT | `/user` | Update User Profile |
| GET | `/user` | Get User Profile |
| POST | `/signout` | Log Out User |
### Machine Learning
| Method | Endpoint | Description |
|--------|-----------------------|------------------------------------|
| POST | `/ml/quiz` | Submit Quiz Data for Analysis |
| POST | `/ml/audio` | Upload Audio for Prediction |
| POST | `/ml/handwriting` | Upload Handwriting for Prediction |
### Machine Learning History
| Method | Endpoint | Description |
|--------|-----------------------|--------------------------------------------|
| GET | `/ml/history` | Retrieve Machine Learning Request History |
| GET | `/ml/all-history` | Retrieve All Machine Learning Requests |
### Contact Psikiater
| Method | Endpoint | Description |
|--------|-------------------------|--------------------------------------------|
| GET | `/api/psychiatrists` | Retrieve psychiatrists list |
| GET | `/api/psychiatrists/:id`| Retrieve psychiatrists details |
### Midtrans Implementation
| Method | Endpoint | Description |
|--------|-------------------------|--------------------------------------------|
| POST | `/api/midtrans/charge` | Midtrans Payment Request |
- Firebase Authentication
- Secure file uploads
- Data encryption
- Clone repository
git clone https://github.com/Mentalys-App/CLOUD-COMPUTING.git
- Install dependencies
npm install
- Configure environment
cp .env.example .env
# Configure your Firebase and GCP credentials in .env
- Start development server
npm run dev
Copyright © 2024 Mentalys
This project is licensed under the MIT License.