https://github.com/rohittcodes/therabot
https://github.com/rohittcodes/therabot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rohittcodes/therabot
- Owner: rohittcodes
- License: gpl-3.0
- Created: 2024-07-20T01:41:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T06:56:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-19T22:45:14.206Z (about 1 year ago)
- Language: TypeScript
- Size: 295 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hack-to-the-future.devfolio.co/)
# TheraBot
  
TheraBot is a mental health chatbot that provides a safe space for users to talk about their mental health and receive support. It is designed to help users feel heard, understood, and supported. TheraBot uses Google's gemini API to provide users with personalized mental health resources and support.
## Table of Contents
- [TheraBot](#therabot)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Demo](#demo)
- [Tech Stack](#tech-stack)
- [Installation](#installation)
- [Setup](#setup)
- [License](#license)
## Features
- **Safe Space**: TheraBot provides a safe space for users to talk about their mental health and receive support.
- **Personalized Support**: TheraBot uses Google's gemini API to provide users with personalized mental health resources and support.
- **Spotify Integration**: TheraBot integrates with Spotify to provide users with personalized music recommendations based on their mood, emotions, and mental health needs.
- **Secure Authentication**: TheraBot uses secure authentication to protect user data and ensure privacy.
- **Real-time Chat**: TheraBot provides real-time chat support to help users feel heard, understood, and supported. It uses pusher to provide real-time chat functionality.
## Demo
[](https://github.com/RohittCodes/therabot/)
https://github.com/user-attachments/assets/c1c15c55-7f33-4837-bc8c-8fd250781e23
Note: If you're not able to access the demo video, please visit this youtube link: [Therabot Demo](https://youtu.be/spDfdA3DONg)
## Tech Stack
- **Frontend**: React.js, Next.js, Tailwind CSS, Shadcn UI
- **Database**: MySQL
- **Authentication**: Auth.js
- **Core packages**: pusher-js, resend, Google's gemini API, Prisma, Spotify API
## Installation
1. Clone the repository
```bash
git clone https://github.com/RohittCodes/therabot.git
```
2. Change the directory
```bash
cd heymate
```
3. Install the dependencies
```bash
yarn
```
4. Run the application
```bash
yarn dev
```
## Setup
1. Create a `.env` file in the root directory of the project and add the following environment variables
```env
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public" # replace with your database url
AUTH_SECRET="your-secret-here"
GITHUB_CLIENT_ID="your-github-client-id-here"
GITHUB_CLIENT_SECRET="your-github-client-secret-here"
GOOGLE_CLIENT_ID="your-google-client-id-here"
GOOGLE_CLIENT_SECRET="your-google-client-secret-here"
RESEND_API_KEY="your-resend-api-key-here"
RESEND_FROM_EMAIL="your-resend-from-email-here" # default: onboarding@resend.dev
NEXT_PUBLIC_URL="http://localhost:3000"
NEXT_PUBLIC_PUSHER_APP_KEY="your-pusher-app-key"
PUSHER_APP_ID="your-pusher-app-id"
PUSHER_SECRET="your-pusher-secret-key"
PUSHER_CLUSTER="your-pusher-cluster"
GOOGLE_API_KEY="your-google-api-key-here"
SPOTIFY_API_URI="https://api.spotify.com/v1"
SPOTIFY_CLIENT_ID="your-spotify-client-id-here"
SPOTIFY_CLIENT_SECRET="your-spotify-client-secret-here"
SPOTIFY_REDIRECT_URI="http://localhost:3000/api/spotify/callback"
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.