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.
Log daily mood and sleep patterns, and view detailed analytics.
Read and like mental health-related articles. Engage with others through posts and discussions.
Uplift your mood with random jokes.
Visualize mood and sleep trends over time.
Mood Calendar | Mood Graph |
- Frontend: React, Axios, Tailwind CSS
- Backend: Node.js, Express, MongoDB, JWT Authentication
- Database: MongoDB for storing user data, posts, mood/sleep logs.
-
Clone the repository and install dependencies in both backend and frontend folder.
-
Install dependencies of both directories:
npm install
-
Create a .env file in the backend folder and add the following variables:
MONGO_URI=<your_mongo_uri> JWT_SECRET=<your_jwt_secret>
-
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
-
Start the server and client app.
npm run dev
- 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"
- Run command
docker compose up