A full-stack mobile application that allows users to log health, activity, and sleep data, and generate AI-powered insights using a backend API.
- Log daily health, activity, and sleep data
- Persistent local storage using SharedPreferences
- Export data as JSON
- Generate AI-ready insights via backend API
- Clean UI built with Jetpack Compose
- Kotlin
- Jetpack Compose
- Retrofit (API communication)
- Node.js
- Express.js
- OpenAI API (integration-ready)
Android App (Kotlin)
↓
Node.js Backend (Express API)
↓
AI Processing (OpenAI API)
↓
Response → App UI
- User logs data in the mobile app
- Data is stored locally on the device
- User clicks "Get AI Insights"
- App sends data to backend via Retrofit
- Backend processes data and returns insights
- App displays results to the user
git clone https://github.com/YOUR_USERNAME/mobile-data-logger-ai.git
cd mobile-data-logger-aicd fitness-ai-backend
npm install
node server.jsServer will run on:
http://localhost:3000
- Open project in Android Studio
- Start emulator
- Click Run
POST /ai-summary
{
"sleep": "6 hours",
"activity": "30 minute run",
"mood": "tired",
"notes": "User log data"
}{
"suggestion": "AI-generated insight appears here"
}.envfile is excluded from Git for securitynode_modulesis ignored- Uses
10.0.2.2to connect Android emulator to localhost backend
- Real OpenAI API integration
- Structured data parsing (auto-detect sleep/activity)
- Trend analysis over time
- Weekly AI summaries
- UI improvements and charts
Abdallah El Hamawi

