npm install -g firebase-tools- Go to https://console.firebase.google.com/
- Click "Add project"
- Name it (e.g., "balance-app")
- Create project
- Authentication: Enable "Email/Password"
- Firestore: Create database in test mode
- Project Settings → Your apps → Web app
- Copy the config values
cd web-app
cp .env.example .env
# Edit .env and paste your Firebase credentials# From project root
firebase login
firebase init
# Select:
# - Firestore
# - Hosting
# - Use existing project (select yours)
# - Public directory: web-app/dist
# - Single-page app: Yesfirebase deploy --only firestore:rules# From project root (BalanceAPP directory)
npm run install:all # First time only
npm run dev # Start dev server# From project root - easiest way!
npm run dev
# OR from web-app directory
cd web-app
npm run dev# Development
npm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
# Firebase
firebase deploy # Deploy everything
firebase deploy --only hosting # Deploy hosting only
firebase deploy --only firestore:rules # Deploy rules onlyCan't connect to Firebase?
- Check your
.envfile exists inweb-appdirectory - Verify all Firebase credentials are correct
Permission denied errors?
- Deploy Firestore rules:
firebase deploy --only firestore:rules
Port 5173 already in use?
- The dev server will automatically use the next available port
- Or kill the process using port 5173
After setup is complete, the app has:
- ✅ User authentication (sign up/login)
- ✅ Dashboard layout
- ✅ Language switcher (EN/CN)
- ✅ Currency selector (USD/CNY)
Ready to implement:
- 🚧 Transaction management
- 🚧 Category management
- 🚧 Budget tracking
- 🚧 AI features
- 🚧 Stealth mode
See README.md for full documentation.