Skip to content
/ raga Public

A comprehensive mental health platform built with the MERN stack, enabling users to track mood and sleep, participate in a supportive community, and enjoy a built-in joke generator to boost their mood.

Notifications You must be signed in to change notification settings

Bluesparx/raga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZENZONE - A Mental Health Application

Deployed

A comprehensive mental health platform built with the MERN stack, enabling users to track mood and sleep, participate in a supportive community, and enjoy a built-in joke generator to boost their mood.

Main Screenshot

Features

Mood & Sleep Tracker

Log daily mood and sleep patterns, and view detailed analytics.

Mood Tracker

Community

Read and like mental health-related articles. Engage with others through posts and discussions.

Community

Joke Generator

Uplift your mood with random jokes.

Joke Generator

Analytics Dashboard

Visualize mood and sleep trends over time.

Analytics Dashboard 1 Analytics Dashboard 2
Mood Calendar Mood Graph
Analytics Dashboard 3

Tech Stack

  • Frontend: React, Axios, Tailwind CSS
  • Backend: Node.js, Express, MongoDB, JWT Authentication
  • Database: MongoDB for storing user data, posts, mood/sleep logs.

Setup Instructions

  1. Clone the repository and install dependencies in both backend and frontend folder.

  2. Install dependencies of both directories:

    npm install
  3. Create a .env file in the backend folder and add the following variables:

    MONGO_URI=<your_mongo_uri>
    JWT_SECRET=<your_jwt_secret>
    
  4. Create a .env file in the frontend folder and add the following variables:

    VITE_REACT_APP_API_KEY= 
    VITE_REACT_APP_AUTH_DOMAIN= 
    VITE_REACT_APP_PROJECT_ID= 
    VITE_REACT_APP_STORAGE_BUCKET= 
    VITE_REACT_APP_MESSAGING_SENDER_ID= 
    VITE_REACT_APP_APP_ID= 
    VITE_REACT_APP_MEASUREMENT_ID= 
    VITE_REACT_APP_API_HOST=https://zenzone.onrender.com
    
    
  5. Start the server and client app.

    npm run dev

Docker Setup

  1. Add your JWT_SECRET and MONGO_URI to the docker-compose.yml file
services:
  raga-ui:
    init: true
    build: ./frontend
    ports:
      - "3000:80"
  
  raga-backend:
    init: true
    build: ./backend
    environment:
      - PORT=8080
      - JWT_SECRET=secret
      - MONGO_URI=urmongouri
    ports:
      - "8080:8080"
  1. Run command
    docker compose up

About

A comprehensive mental health platform built with the MERN stack, enabling users to track mood and sleep, participate in a supportive community, and enjoy a built-in joke generator to boost their mood.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published