Welcome to SmartBabyLK-X2, the revolutionary all-in-one digital health platform designed to simplify infant care! Powered by cutting-edge AI, this app combines seamless health record management with intelligent insights and personalized recommendations to empower parents and caregivers. Whether you're tracking your baby's growth, immunizations, or milestones, SmartBabyLK-X2 is here to make parenting easier, smarter, and more connected.
- Effortless Health Tracking: Digitally manage your infant's health records with ease.
- AI-Powered Insights: Get personalized care tips and answers from our smart chatbot.
- Comprehensive Monitoring: Track growth, diet, immunizations, and developmental milestones in one place.
- Seamless Connectivity: Stay connected with SMS, USSD, OTP, and subscription features via mSpace API.
- Modern & Fast: Built with a sleek React frontend (Vite) and a robust FastAPI backend.
- Parent-Friendly Design: Intuitive, responsive, and designed to fit your busy life.
- Features
- Project Structure
- Get Started: Backend (FastAPI)
- Get Started: Frontend (React/Vite)
- API Integration
- Environment Setup
- Development & Deployment
- Contribute to the Project
- License
- Get in Touch
- 📋 Digital Health Records: Securely store and access your baby's health data anytime, anywhere.
- 🤖 AI Chatbot: Ask questions and get instant, personalized care advice.
- 📈 Growth & Milestone Tracking: Monitor your baby's progress with easy-to-read charts.
- 🍎 Diet & Immunization Logs: Stay on top of nutrition and vaccination schedules.
- 📱 mSpace API Integration: Manage subscriptions and communicate via SMS, USSD, and OTP.
- ⚡ Lightning-Fast UI: A modern React frontend powered by Vite for a smooth experience.
- 🛠 Scalable Backend: RESTful APIs built with FastAPI for reliability and speed.
SmartBabyLK-X2/
│
├── backend/ # FastAPI-powered backend
│ ├── main.py # Core application logic
│ ├── requirements.txt # Python dependencies
│ ├── routers/ # API route definitions
│ ├── schemas/ # Data models
│ ├── utils/ # Helper functions
│ └── docs/ # API documentation
│
├── frontend/ # React frontend with Vite
│ ├── src/ # React components and logic
│ ├── public/ # Static assets
│ ├── package.json # Node.js dependencies
│ └── vite.config.js # Vite configuration
│
└── README.md # You're here!
cd backend
pip install -r requirements.txtFor development:
python main.pyFor production (recommended):
uvicorn main:app --host 0.0.0.0 --port 8080Check out the interactive Swagger UI at http://localhost:8080/docs.
cd frontend
npm installnpm run devAccess the app at http://localhost:5173 (default Vite port).
npm run buildThe frontend and backend work together seamlessly via RESTful APIs. Key endpoints include:
- Authentication:
/authfor secure user access. - Baby Profiles:
/baby,/growth,/diet,/immunization,/milestonefor comprehensive tracking. - Chatbot:
/chatbotfor AI-driven parenting advice. - mSpace API:
/mspacefor SMS, USSD, OTP, and subscription management.
Create a .env file in the backend/ directory to configure sensitive settings:
# backend/.env
MSPACE_APP_ID=your_mspace_app_id
MSPACE_PASSWORD=your_mspace_password
MSPACE_BASE_URL=https://api.mspace.lk
PORT=8080- Backend: Deploy on platforms like Azure VM, Railway, or Render (Python 3.11+).
- Frontend: Host on Vercel, Netlify, or Azure Static Web Apps for a blazing-fast experience.
- Production Tips: Use Gunicorn or Uvicorn with a reverse proxy like Nginx for optimal backend performance.
We'd love your help to make SmartBabyLK-X2 even better! Here's how to contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/YourAmazingFeature - Commit your changes:
git commit -am 'Add an awesome feature' - Push to your branch:
git push origin feature/YourAmazingFeature - Open a Pull Request and join the community!
This project is licensed under the MIT License—open, flexible, and ready for innovation.
Have questions or ideas? Reach out to the maintainer or open an issue on GitHub. Let's make parenting smarter together!
⭐ Star this project if you find it helpful, and share it with fellow parents and developers!