Complete parenting care platform from pregnancy planning to baby care with AI-powered assistance.
- Pregnancy Planning: Fertility planning, cycle tracking, and conception guidance
- Pregnancy Guide: Trimester-by-trimester pregnancy tracking and guidance
- Baby Care Mode: Feeding and sleep tracking for infants
- Vaccination Management: Schedule and completion tracking with reminders
- Nutrition Guidance: Meal planning and nutritional recommendations
- Health Awareness: Health tips and medical information
- AI Assistant: Chatbot widget powered by n8n workflow (see included n8n JSON files)
- User Authentication: JWT-based secure authentication with user profiles
- Frontend: Static HTML/CSS/JavaScript (served with
live-server) - Backend: Node.js + Express + MongoDB
- AI Integration: n8n workflow automation (chatbot)
- Database: MongoDB (Atlas recommended)
frontend/ # Static site (HTML/CSS/JS)
├── pages/ # All HTML pages
├── css/ # Stylesheets
├── js/ # JavaScript modules
└── assets/ # Images and media
backend/ # Express API
├── routes/ # API endpoints
├── models/ # MongoDB schemas
└── middleware/ # Authentication middleware
n8n-chatbot-*.json # n8n workflow configurations
Create backend/.env:
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key_here
PORT=5000Install dependencies and run the API:
cd backend
npm install
npm run devAPI health check: http://localhost:5000/health
The frontend is a static site served via live-server.
cd frontend
npm install
npm startFrontend will run at: http://localhost:3000
Update the backend URL in frontend/js/config.js:
const API_BASE_URL = 'http://localhost:5000/api';To enable the AI chatbot:
- Install n8n locally or use n8n.cloud
- Import the workflow from
n8n-chatbot-workflow.jsonorn8n-chatbot-simple.json - Configure your LLM credentials in the workflow
- Update the chatbot webhook URL in your frontend configuration
- Push this repository to GitHub
- Go to Netlify → Add new site → Import from GitHub
- Configure build settings:
- Base directory:
frontend - Build command: (leave empty)
- Publish directory:
frontend
- Base directory:
- Click Deploy
- Go to Render → New → Web Service
- Connect your GitHub repository
- Configure service:
- Root directory:
backend - Build command:
npm install - Start command:
npm start
- Root directory:
- Add environment variables:
MONGODB_URI- Your MongoDB connection stringJWT_SECRET- A secure random string
- Click Create Web Service
After deployment, update frontend/js/config.js with your Render URL:
const API_BASE_URL = 'https://your-app.onrender.com/api';Then redeploy on Netlify (or push changes to trigger auto-deploy).
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/dbname
JWT_SECRET=your_secure_random_string_here
PORT=5000POST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/baby/profile- Get baby profilesPOST /api/tracking/feeding- Log feedingPOST /api/tracking/sleep- Log sleepGET /api/vaccination/schedule- Get vaccination schedulePOST /api/nutrition/plan- Get nutrition planPOST /api/ai/chat- AI chatbot endpoint
- Landing Page:
index.html - Authentication:
login.html,signup.html - Mode Selection:
mode-selection.html - Pregnancy Planning:
pregnancy-planning.html,fertility-planning.html - Pregnancy Guide:
pregnancy-guide.html - Baby Tracking:
baby-tracking.html,baby-profile.html - Dashboards:
dashboard.html,dashboard-new.html - Features:
vaccination.html,nutrition.html,health-awareness.html - User Profile:
profile.html
- Vanilla JavaScript (ES6+)
- CSS3 with custom properties
- Responsive design
- Local storage for session management
- Express.js - Web framework
- Mongoose - MongoDB ODM
- JWT - Authentication
- Bcrypt - Password hashing
- CORS - Cross-origin support
- Express Validator - Input validation
- User - User accounts and authentication
- Baby - Baby profiles
- FeedingLog - Feeding tracking
- SleepLog - Sleep tracking
- Milestone - Development milestones
- Vaccination - Vaccination schedules
ISC
- This project includes n8n workflow files for AI chatbot integration
- The chatbot can be customized by modifying the n8n workflow
- All timestamps are stored in UTC
- Frontend uses relative paths for easy deployment