Comprehensive pregnancy and baby care platform for moms, doctors, midwives, service providers, and admins. Built with React, Vite, Node.js, MongoDB, and Python AI backend.
- Mom: Pregnant women using the platform
- Doctor: Healthcare providers
- Midwife: Field healthcare staff
- Service Provider: Product/service vendors
- Admin: Platform administrators
- JWT-based login/register for all users
- Role-based access and protected routes
- Profile dropdown, edit profile, password change
- Mom profile: medical, personal, location, emergency info
- Secure admin login and dashboard
- User management (view, activate/deactivate, delete)
- Role/permission management
- Statistics: user counts, engagement, registrations
- Permission request management
- Detailed mom profile management
- Medical history, pregnancy info, BMI calculation
- Clinic visit requests
- Vaccination tracking and appointment requests
- Dashboard for appointments, patients, and requests
- Approve/reject clinic visit and vaccination requests
- Messaging with moms
- Product management
- Order management
- Dashboard for service providers
- Moms request clinic visits via modal form
- Status tracking: pending, approved, rejected, completed, cancelled
- Admin/midwife management of requests
- Vaccination timeline and status (completed, upcoming, due, missed)
- Appointment requests for vaccinations
- WHO-based schedule, batch numbers, adverse effects
- Book, view, update, and delete appointments
- Real-time chat between moms and doctors
- File upload (images, documents)
- Socket.io for live updates
- Python FastAPI backend for baby weight prediction & diabetes risk
- Real dataset (babies.csv) for ML model training
- REST API for predictions
- Fallback to local calculations if AI backend unavailable
- JWT authentication, protected routes
- Input validation, error handling
- Role-based permissions
- Secure token storage and session management
- React + Vite
- Context API for auth state
- Tailwind CSS for responsive design
- Express.js REST API
- Multi-database: Auth, MommyCareData, Test
- Models: User, Appointment, Message, ClinicVisitRequest, VaccinationRecord, etc.
- Role-based routes and controllers
- Socket.io for real-time messaging
- FastAPI server
- ML models: baby weight predictor, diabetes predictor
- Data processing, model training, prediction endpoints
- CSV uploads and model retraining
- Socket.io: Real-time chat, appointment updates
- Cloudinary: File/image uploads
- MongoDB Atlas: Cloud database
- FastAPI: AI backend
- Clone repo & install dependencies (
npm install) - Configure
.envfiles for backend, frontend, and AI backend - Start MongoDB and backend server (
npm run dev) - Start frontend (
npm run dev) - Start AI backend (
python main.pyinai_backend)
- Check backend/frontend/AI logs for errors
- Verify environment variables
- Use working admin credentials for admin access
- See individual module READMEs for more details
ADMIN_SETUP_README.md: Admin system setupPROFILE_SYSTEM_README.md: Profile dropdown systemMOM_PROFILE_SYSTEM_README.md: Mom profile managementVACCINATION_SYSTEM_README.md: Vaccination systemCLINIC_VISIT_SETUP.md: Clinic visit request systemAI_INTEGRATION_GUIDE.md: AI backend integration
MommyCare is a full-featured platform for pregnancy and baby care, supporting multiple user roles, secure authentication, medical and appointment management, vaccination tracking, AI-powered predictions, and real-time communication. See module READMEs for deep dives into each feature!