/raga

Mental Health Cloud

Primary LanguageJavaScript

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:

    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. 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