Skip to content

SmartBabyLK serves as an all-in-one digital health companion that digitalizes traditional infant health records while incorporating cutting-edge AI technology to provide intelligent insights and personalized care recommendations.

License

Notifications You must be signed in to change notification settings

Coder-pro1/SmartBabyLK-X2

Repository files navigation

🚼 SmartBabyLK-X2: Your Ultimate Infant Care Companion

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.


🌟 Why You'll Love SmartBabyLK-X2

  • 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.

📑 Table of Contents


🌈 Features

  • 📋 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.

📂 Project Structure

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!

🚀 Get Started: Backend (FastAPI)

1. Install Dependencies:

cd backend
pip install -r requirements.txt

2. Launch the Server:

For development:

python main.py

For production (recommended):

uvicorn main:app --host 0.0.0.0 --port 8080

3. Explore the API:

Check out the interactive Swagger UI at http://localhost:8080/docs.


🎨 Get Started: Frontend (React/Vite)

1. Install Dependencies:

cd frontend
npm install

2. Run the Development Server:

npm run dev

Access the app at http://localhost:5173 (default Vite port).

3. Build for Production:

npm run build

🔗 API Integration

The frontend and backend work together seamlessly via RESTful APIs. Key endpoints include:

  • Authentication: /auth for secure user access.
  • Baby Profiles: /baby, /growth, /diet, /immunization, /milestone for comprehensive tracking.
  • Chatbot: /chatbot for AI-driven parenting advice.
  • mSpace API: /mspace for SMS, USSD, OTP, and subscription management.

⚙️ Environment Setup

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

🌍 Development & Deployment

  • 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.

🤝 Contribute to the Project

We'd love your help to make SmartBabyLK-X2 even better! Here's how to contribute:

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature/YourAmazingFeature
  3. Commit your changes: git commit -am 'Add an awesome feature'
  4. Push to your branch: git push origin feature/YourAmazingFeature
  5. Open a Pull Request and join the community!

📜 License

This project is licensed under the MIT License—open, flexible, and ready for innovation.


📬 Get in Touch

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!

About

SmartBabyLK serves as an all-in-one digital health companion that digitalizes traditional infant health records while incorporating cutting-edge AI technology to provide intelligent insights and personalized care recommendations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •