Skip to content

Latest commit

 

History

History
211 lines (144 loc) · 7.35 KB

CodeCrafters.md

File metadata and controls

211 lines (144 loc) · 7.35 KB

CoC Inheritance 2022
Mental Health Navigator

Mental Health Navigator - A mental wellness website focusing on self care and integrated chatbot
CoC Inheritance 2023 || CodeCrafters


Table of Contents

📝Description

Mental health problems are a major public health issue, affecting millions of people around the world. Many people with mental health problems do not seek help, due to stigma, fear, or lack of access to care.Mental health websites can play a vital role in providing information and support to people with mental health problems and their loved ones.The Website has following features

  1. Health Chatbot: We have used LLama-2 model and fine tuned it with hugging face dataset.The model returns health advice according to user inputs (Hugging Face Dataset:https://huggingface.co/datasets/vibhorag101/phr_mental_therapy_dataset)

  2. Login/Signup pages:user authentication is required to access features of this website.

  3. Profile:Users can view and enter their profile details, such as their name, age, gender and write reviews.

  4. Journaling:A react based webpage which allows users to maintain a digital journal where they can record their thoughts, feelings, and experiences. Therapeutic practice that helps individuals process their emotions and track their mental health progress over time.

  5. Habit Tracking:Users can create custom habits to track, such as exercise, meditation, medication adherence, sleep patterns, or social interactions.

  6. Personal stories:This section features real-life narratives and testimonials shared by individuals who have experienced mental health challenges, recovery journeys, or personal growth.

🔗Links

🤖Tech-Stack

Front-end

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • ReactJS

Back-end

  • ReactJS
  • ExpressJS
  • Mongoose
  • Python
  • Flask
  • Flask , Flask_ngrok
  • Ngrok

Database

  • MongoDB

Natural language processing

  • Transformers
  • Accelerate
  • Peft
  • Bitsandbytes
  • Torch
  • Langchain

📈Progress

  • Chatbot
  • Login-Signup and logout functionality
  • Journaling with update and delete functionality
  • Profile page displaying biodata
  • Fetch data using API
  • Personality Test
  • Habit tracker
  • Personal stories

🔮Future Scope

  • Nearby professional healthcare location
  • Connecting to therapist as a middleware

💸Applications

We have combined multiple functionalities into a single website with a user friendly chatbot. This website involves wellness features to help the users, a platform to connect, and a help-providing chatbot.

🛠Project Setup

Clone the repository:

Open a terminal window.

Bash git clone https://github.com/meggha/MentalHealthNavigator

Navigate to the project directory:

In the terminal window, use the cd command to change directory to the folder where you cloned the repository. For example, if you cloned the repository into a folder named my-app, type:

Bash cd my-app

Install frontend dependencies:

Navigate to the client directory within the project:

Bash cd client

Install the required frontend dependencies by running:

Bash npm install

Install backend dependencies:

Navigate back to the project root directory:

Bash cd ..

Go to the server directory:

Bash cd server

Install the required backend dependencies by running:

Bash npm install

💻Usage

  1. Open two terminal windows:

In Windows, press Windows + R, type cmd, and press Enter. In macOS/Linux, open your preferred terminal application.

  1. Navigate to the project directory:

In both terminal windows, use the cd command to change directory to the root of your project folder. This folder should contain both client and server subdirectories.

  1. Run the frontend:

In one terminal window, type cd client and press Enter. This changes directory to the client subfolder. Then, type npm start and press Enter. This will start the frontend development server.

  1. Run the backend:

In the other terminal window, type cd server and press Enter. This changes directory to the server subfolder. Then, type npm run devStart and press Enter. This will start the backend development server.

  1. For the chatbot
  • If you have GPU then make sure you have cuda installed and then run app.py
  • Or you can also run server.ipynb on colab. After running this you will get a link in the output. Make sure to replace the link in client\src\bot\ActionProvider.jsx line 12
  1. Access the web app:

Open a web browser. In the address bar, type http://localhost:3000. This opens the frontend app running on the development server.

Additional notes:

  • The frontend app will automatically reload in the browser whenever you make changes to the code.
  • You may see console messages related to the development process in both terminal windows.
  • Remember to stop the servers (Ctrl+C in most terminals) when you're done to avoid resource usage.

👨‍💻Team Members

Add names of your team members with their emails and links to their GitHub accounts

👨‍🏫Mentors

Add names of your mentors with their emails and links to their GitHub accounts

📱Screenshots

Home

Signup

Login

Write Blog

Show Blog

Update Blog

Profile

Personal Stories

Personality Test

Chatbot