Ease-In is a web-based, non-diagnostic mental well-being self-assessment chatbot designed to help college students reflect on their mental health and discover appropriate support resources.
The platform provides a conversational interface that guides users through standardized screening questions related to depression and anxiety symptoms. Based on their responses, it calculates assessment scores and provides supportive guidance and possible next steps.
Ease-In aims to encourage early help-seeking behavior and make mental well-being resources easier for students to access.
Disclaimer: Ease-In is not a diagnostic tool and does not replace professional medical advice, diagnosis, or treatment.
| Component | Status |
|---|---|
| Project | Active Development |
| Frontend | React + TypeScript |
| UI Styling | Tailwind CSS |
| Backend | Python + Flask |
| Database | MySQL |
| Assessment Frameworks | PHQ-9 and GAD-7 |
| Supported Languages | English, Hindi and Spanish |
| Deployment | Configuration depends on the target environment |
- Conversational Assessment: A chatbot-style interface for answering mental well-being questions.
- PHQ-9 Screening: Assesses depressive symptoms using the PHQ-9 questionnaire.
- GAD-7 Screening: Assesses anxiety symptoms using the GAD-7 questionnaire.
- Automated Scoring: Sends assessment responses to the backend for score calculation.
- Supportive Guidance: Displays results, disclaimers and next-step guidance returned by the backend.
- Multilingual Interface: Supports English, Hindi and Spanish in the question interface.
- Privacy-Conscious Experience: Designed to let users complete assessments without creating an account.
- Responsive Design: Tailwind CSS utilities support mobile, tablet and desktop layouts.
- Feedback System: Provides a feedback page for collecting user opinions.
- Multiple Pages: Includes Home, About, Feedback, Donate and Questions pages.
The actual data collected and stored depends on the current backend implementation and deployment configuration.
- React
- TypeScript
- Tailwind CSS
- Vite
- React Router
- Python
- Flask
- REST APIs
- MySQL
- Aiven MySQL Free Tier for cloud database hosting, when configured
- Visual Studio Code
- Git and GitHub
- npm
- Python virtual environment
Ease-In/
|
|-- Backend/
| |-- routes/
| |-- .env
| |-- app.py
| |-- assessment.py
| |-- chatbot.py
| |-- db.py
| |-- requirements.txt
|
|-- Frontend/
| |-- public/
| |-- src/
| |-- package.json
| |-- package-lock.json
| |-- index.html
| |-- vite.config.ts
|
|-- .gitignore
|-- README.md
This is a high-level representation. Your repository may contain additional files and folders.
Follow these steps to run Ease-In locally.
Install the following software:
- Python
- Node.js and npm
- MySQL Server or a configured Aiven MySQL service
- Git (optional)
git clone https://github.com/Piyush-devpy/Ease-In.chatbot
cd Ease-InOpen a terminal in the project root:
cd Backend
py -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txtIf you are using Command Prompt instead of PowerShell, activate the virtual environment with:
.venv\Scripts\activateCreate a .env file inside the Backend directory.
Example configuration:
DB_HOST=your_mysql_host
DB_PORT=3306
DB_NAME=your_database_name
DB_USER=your_mysql_username
DB_PASSWORD=your_mysql_passwordImportant: These are example variable names. Use the exact names expected by your current Backend/db.py and application configuration.
Never commit real database credentials to GitHub.
You can use a local MySQL instance or a configured Aiven MySQL database.
- Ensure the database service is running.
- Create the database if it does not already exist.
- Create the required tables using your project's schema or initialization logic.
- Configure the correct database host, port, username and password.
- Confirm that your Flask backend can connect to the database.
For Aiven, use the connection details shown in your Aiven Console. Depending on the service configuration, SSL may be required.
Note: The exact schema and database initialization commands depend on your current backend implementation.
With the virtual environment activated:
python app.pyKeep this terminal open.
The examples below assume the backend runs at:
http://localhost:5000
Use the actual host and port configured by your Flask application if they differ.
Open a second terminal from the project root:
cd Frontend
npm installIf your frontend uses VITE_API_BASE_URL, configure it in Frontend/.env.local:
VITE_API_BASE_URL=http://localhost:5000This example assumes the Flask API is running locally on port 5000.
Do not place database passwords or private secrets in frontend environment variables. Variables prefixed with VITE_ can be exposed to browser code.
From the Frontend directory:
npm run devOpen the local URL printed by Vite, commonly:
http://localhost:5173
The frontend integrates with the following backend endpoints.
Endpoint
GET /api/chatbot/questions?language=enPurpose
Retrieves the assessment introduction, question sections, frequency options, questions and supporting text for the selected language.
Supported language values:
| Code | Language |
|---|---|
en |
English |
hi |
Hindi |
es |
Spanish |
Endpoint
POST /api/assessment/scoreExample Request Body
{
"answers": [0, 1, 2, 1, 0, 1, 2, 0, 1, 1, 0, 2, 1, 0, 1, 2],
"language": "en"
}The frontend sends 16 ordered answers:
- The first 9 answers correspond to PHQ-9.
- The remaining 7 answers correspond to GAD-7.
The numerical values must match the frequency options defined by the backend.
The scoring endpoint returns assessment results, including PHQ-9 and GAD-7 scores, a self-harm flag, support information, a disclaimer and next-step guidance.
Refer to Backend/assessment.py for the authoritative scoring implementation and response format.
Ease-In is designed to support self-reflection and help users explore available resources. It must not be presented as a diagnostic system.
- Clearly explain that screening results are not a diagnosis.
- Provide appropriate support information when required by the assessment flow.
- Protect database credentials and other secrets.
- Review data retention, access control, logging and hosting configuration before public deployment.
- Do not claim that data is completely anonymous or never stored without verifying the complete application and infrastructure.
- Review applicable privacy and security requirements before collecting real user data.
If a user may be in immediate danger, the application should direct them to appropriate local emergency or crisis support resources.
Recommended development practices:
- Use Git branches for significant changes.
- Keep backend and frontend configuration documented.
- Test the question retrieval endpoint after API changes.
- Verify scoring behavior with appropriate test cases.
- Test language switching and translated question content.
- Check mobile, tablet and desktop layouts.
- Review
git statusbefore every commit. - Keep
.env, virtual environments and generated files out of version control.
- Verify that the Flask server is running.
- Check the configured backend URL.
- Confirm the port number.
- Inspect browser developer tools for request errors.
- Check the Flask terminal for exceptions.
- Verify the MySQL service status.
- Check the database host, port, username and database name.
- Confirm that the environment variable names match
Backend/db.py. - Verify that the database user has the necessary permissions.
- If using Aiven, check the service status and connection settings.
Run the command from the frontend directory:
cd Frontend
npm install
npm run devConfirm that Frontend/package.json exists.
Activate the backend virtual environment and run:
pip install -r requirements.txtIf necessary, recreate the virtual environment and reinstall dependencies.
Potential improvements for future development include:
- Automated tests for backend endpoints and scoring.
- More comprehensive accessibility testing.
- Improved privacy and data-retention documentation.
- Production deployment configuration.
- Expanded localization and translation review.
- Additional support-resource information.
These items are suggestions for future work, not claims that they are already implemented.
Contributions and suggestions are welcome.
- Fork the repository.
- Create a branch for your change.
- Implement and test your changes.
- Commit your work with a descriptive message.
- Open a pull request explaining the changes.
This project is licensed under the MIT License. See the LICENSE file for details..
Ease-In — Making Mental Well-Being Support Easier to Approach