Live Website: MindMend
MindMend is a mental health support platform that provides 24/7 AI-powered therapeutic conversations through Google's Gemini AI and access to emergency helpline numbers. The platform offers a safe, confidential space for users to discuss their mental health concerns and get immediate support when needed.
- 24/7 AI Support: Access therapeutic conversations anytime with Google Gemini AI
- Personalized Responses: AI adapts to your conversation style and needs
- Safe Space: Confidential and judgment-free environment for mental health discussions
- Secure Registration: User-friendly signup process
- Protected Routes: Secure access to chat functionality
- User Profiles: Personalized experience for each user
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Intuitive Navigation: Clean and accessible user interface
- Professional Design: Modern UI with Tailwind CSS styling
- Crisis Helplines: Quick access to emergency mental health resources
- 24/7 Support: Round-the-clock crisis intervention information
- React 18 - Modern React with hooks and functional components
- Vite - Fast build tool and development server
- React Router DOM - Client-side routing
- Tailwind CSS - Utility-first CSS framework
- React Hook Form - Form handling and validation
- React Icons - Icon library
- React Toastify - Toast notifications
- Axios - HTTP client for API calls
- Node.js - JavaScript runtime
- Express.js - Web application framework
- MongoDB - NoSQL database with Mongoose ODM
- JWT - JSON Web Tokens for authentication
- bcryptjs - Password hashing
- Google Gemini AI - AI-powered conversation API
- CORS - Cross-origin resource sharing
- Cookie Parser - Cookie handling
- ESLint - Code linting
- PostCSS - CSS processing
- Autoprefixer - CSS vendor prefixing
- Nodemon - Development server with auto-restart
- Node.js (v16 or higher)
- MongoDB (local installation or MongoDB Atlas)
- Google Gemini API key
git clone <repository-url>
cd MindMendcd client
npm installcd ../server
npm installCreate a .env file in the server directory:
PORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
GEMINI_API_KEY=your_gemini_api_key
CORS_ORIGIN=your_local_frontend_urlcd server
npm run devcd client
npm run dev- Sign Up: Create an account with your personal information
- Start AI Chat: Access 24/7 AI-powered therapeutic conversations
- Access Helplines: Find emergency mental health resources when needed
- Get Support: Receive immediate mental health support anytime, anywhere
POST /api/v1/user/register- User registrationPOST /api/v1/user/login- User loginPOST /api/v1/user/logout- User logout
POST /api/v1/gemini- AI-powered conversation endpoint
GET /api/v1/user/profile- Get user profilePUT /api/v1/user/profile- Update user profile
MindMend/
├── client/ # Frontend React application
│ ├── public/ # Static assets
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── context/ # React context providers
│ │ ├── apiCalls/ # API integration
│ │ └── ...
│ └── package.json
├── server/ # Backend Node.js application
│ ├── config/ # Database configuration
│ ├── controller/ # Route controllers
│ ├── middleware/ # Custom middleware
│ ├── models/ # MongoDB schemas
│ ├── router/ # API routes
│ └── server.js # Main server file
└── README.md
- Password Hashing: Secure password storage with bcryptjs
- JWT Authentication: Token-based authentication system
- Protected Routes: Role-based access control
- CORS Configuration: Secure cross-origin requests
- Input Validation: Server-side validation for all inputs
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Disclaimer: MindMend is designed to provide support and information but is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of qualified mental health professionals for serious mental health concerns.
