Bluesparx / raga

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.
https://zen-zone-raga.vercel.app
19 stars 37 forks source link
acternity-ui docker express hacktoberfest ieee-igdtuw mentalhealth mern-project mongodb nodejs react tailwindcss

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

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
  6. 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"
  7. Run command

    docker compose up