/MyPeace

Primary LanguageTypeScriptMIT LicenseMIT

Watchers Forks Star

Issue Open Pull Request

License

Table of Contents

Features

  • Login and SignUp

    UI of landing page
    UI of Login page
    UI of Registration for new User
  • Personalized Mental Health System

    Analyze user input and stress levels to suggest personalized mindfulness and stress reduction techniques.

    Sample UI of Questionare
  • Empathetic Conversations

    Implement a chatbot powered by Gemini's API to engage users in empathetic and supportive conversations.

    Sample UI of Chatbot

Demo

428321827_7044503288994047_8335669478696613665_n.1.mp4

Installation

Prerequisites

Before running, Mypeace, you will need an OpenAI API key from Gemini Services. You can obtain an API key by registering on the Gemini platform.

Setup

FrontEnd

  1. Clone the repository:

    git clone 
  2. Change directory to frontend

    cd client/
  3. Installation of node packages

     npm i
  4. Running the project:

    npm run dev

Backend

  1. Change directory to backend

    cd backend/
  2. Installation of node packages

     npm i
  3. Setting up .env in root backend folder for saving openai api key

  • Create a .env file

    # inside .env file
    PORT=3000
    CONNECTION_STRING=mongodb://localhost:27017/mydatabase
    SECRET_KEY=********* # You can keep anything
    OPENAI_API_KEY=******************************* # Your key 
  1. Running the project:

    npm run dev

Dependencies

Frontend

  • Vite
  • React
  • React Router
  • React Icons
  • shadcn/ui
  • Tailwind CSS

Backend

  • nodejs

License

This project is licensed under the MIT License.