Nexiva is a production-focused routine management platform with:
- Dynamic time blocking
- Smart routine builder
- Idea sandbox and feasibility checks
- Gamification and analytics
- Real-time sync across Android and Web
flutter_app/Flutter app for Android and Webfirebase/Firestore rules, indexes, Firebase Functionsscripts/setup and deploy scripts.github/workflows/CI pipeline
- Frontend: Flutter, Riverpod, go_router
- Backend: Firebase Auth, Firestore, Cloud Functions (TypeScript)
- Hosting: Firebase Hosting
- Local persistence: Drift (offline queue + sync)
Install:
- Flutter SDK (stable)
- Firebase CLI (
npm i -g firebase-tools) - Node.js 20+
- Java 17 (Android builds)
cd flutter_app
flutter pub getGenerate Firebase options:
dart pub global activate flutterfire_cli
flutterfire configureThis updates lib/firebase_options.dart with real values.
cd firebase/functions
npm install
npm run buildFrom repo root:
firebase emulators:start --config firebase/firebase.jsonIf flutter is not recognized after SDK installation on Windows, open a new terminal or restart VS Code so PATH updates are loaded.
Android:
cd flutter_app
flutter runWeb:
cd flutter_app
flutter run -d chrome- Every user-owned document stores
ownerId. - Firestore rules enforce
request.auth.uid == ownerId. - Aggregated gamification docs are write-protected and updated by Functions.
Web hosting:
firebase deploy --only hosting --config firebase/firebase.jsonFunctions + Firestore rules/indexes:
firebase deploy --only functions,firestore:rules,firestore:indexes --config firebase/firebase.jsoncd firebase/tests
npm install
npm testFunctions use runtime config/environment values for AI integration and third-party tokens.
AI_PROVIDERAI_API_KEYAI_MODEL
Never commit secrets.
This repository is scaffolded for phased implementation:
- Foundation: complete
- Auth/Data/Security baseline: complete
- Timeline/Ideas/Gamification: starter implementation included
- Advanced AI/calendar production hardening: pending provider credentials and rollout flags