Mono-repo for the Sleeping Agent app - vibe coded ai agent to track improve baby sleep.
/frontend - Vite + React + TypeScript web UI
/backend - Express + TypeScript API server
/app - React Native mobile app (iOS/Android)
# Run backend and database with Docker
docker-compose up --build
# Or run individually:
# Backend (from /backend)
cd backend
npm install
npm run dev
# Web Frontend (from /frontend)
cd frontend
npm install
npm run dev
# Mobile App (from /app)
cd app
npm install
npx expo start- Web Frontend: http://localhost:3000
- Backend API: http://localhost:4000
- Database: localhost:5432
The React Native app in /app uses Expo for easy development:
- Install dependencies:
cd app && npm install - Start Expo:
npx expo start - Update
app/src/helpers.tswith your backend URL:- iOS Simulator:
http://localhost:4000 - Android Emulator:
http://10.0.2.2:4000 - Physical Device:
http://YOUR_COMPUTER_IP:4000
- iOS Simulator:
- Scan QR code with Expo Go app (iOS/Android) or press
ifor iOS simulator,afor Android emulator