MindMood is a mood-based activity tracker that helps users monitor and reflect on their daily emotions and activities.
Users can log activities by mood category (Calm, Neutral, Stressed), edit and delete entries, and visualize their mood trends over time.
This project aims to promote mindfulness and improve personal well-being through mood awareness.
- Clone the repository:
git clone https://github.com/your-username/G13_MindMood.git cd G13-MindMood-PreHack-2025
React
Axios
React Router DOM
Tailwind CSS
Getting Started - React Client 1.Navigate to the frontend directory:
cd Frontend
2.Navigate to the frontend directory:
npm install
3.Start the development server:
npm run dev
4.The server will be running on:
(http://localhost:5173)
Tech Stack Hono SQLite Prisma
Method | Endpoint | Description |
---|---|---|
POST | /user/createUser | Create a new user account |
GET | /user/getUsername/:userId | Retrieve username by user ID |
PATCH | /user/updateProfile | Update user profile information |
Method | Endpoint | Description |
---|---|---|
POST | /activity/ | Create a new activity |
GET | /activity/ | Get activities by week and day (query params: week, day) |
GET | /activity/all | Get all activities for the authenticated user |
PUT | /activity/:id | Update an activity by ID |
DELETE | /activity/:id | Delete an activity by ID |
POST | /activity/clear-day | Clear all activities for a specific week and day (body: week, day) |
POST | /activity/clear-all | Clear all activities and submissions for the authenticated user |
Method | Endpoint | Description |
---|---|---|
POST | /activity/submit | Submit the day and generate mood summary (body: week, day) |
GET | /activity/submission | Get submission (mood summary) for a specific day (query params: week, day) |
GET | /activity/submissions/all | Get all mood submissions for the authenticated user |
Node.js Hono Framework Prisma ORM SQLite Database
Getting Started - React Client 1.Navigate to the backend directory:
cd Backend
2.Navigate to the backend directory:
npm install
3.Create a .env file and configure the following variables:
DATABASE_URL={Your database connection string}
SHADOW_DATABASE_URL={Your shadow database connection string}
4.Run database migrations (if applicable):
npx prisma migrate dev
5.Generate Prisma client:
npx prisma generate
6.Start the development server:
npm run dev
7.The server will be running on::
(http://localhost:3000)