Get your CivicIssue platform running in 10 minutes!
- Set up database (2 min)
- Run admin panel (2 min)
- Run user app (2 min)
- Test everything (4 min)
- Go to: https://app.supabase.com
- Find project:
gwflrcmaxivxphsdkyyy - Click SQL Editor
- Open file:
supabase-setup.sql(in project root) - Copy ALL content
- Paste in SQL Editor
- Click RUN
- Wait for success message ✅
- Go to Storage tab
- Click New bucket
- Name:
issues - Check ☑️ Public bucket
- Click Create
Done! ✅
cd /Users/Sadique/CivicIssue_adminpanel
npm install
npm run devVisit: http://localhost:3001
- Click "Sign Up"
- Enter:
- Name: Your Name
- Email: admin@example.com
- Password: admin123 (or your choice)
- Click "Create Account"
You're in! ✅
cd /Users/Sadique/CivicIssue_adminpanel/CivicIssue_userapp
npm install
npm startOption A - Physical Device:
- Install "Expo Go" app from App Store/Play Store
- Scan QR code from terminal
Option B - Simulator:
- iOS: Press
iin terminal - Android: Press
ain terminal
Done! ✅
- In user app, click "Sign Up" (create different account than admin)
- After login, click "Report Issue"
- Select category: "🚧 Road"
- Add title: "Test Pothole"
- Add description: "Testing the app"
- Allow location access
- Click "Submit Report"
- See success message ✅
- Go to admin panel (http://localhost:3001)
- Check dashboard - see your issue appear!
- Click on the issue
- See all details ✅
- In issue details, find status dropdown
- Change to "In Progress"
- Click "Save" or similar
- See status update ✅
- In user app, go to "My Issues"
- Tap your test issue
- Scroll to comments
- Type: "This is a test comment"
- Click send icon
- See comment appear ✅
- In issue details, tap the ⬆️ vote button
- See number increase
- Button should turn green ✅
If all 5 tests passed, you're ready!
✅ Database with all tables ✅ Firebase authentication ✅ Real-time data sync ✅ Image uploads ✅ Comments system ✅ Voting system ✅ Status updates ✅ Notifications (in database)
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
npm run dev# Restart with clean cache
expo start -c- Check Supabase SQL ran successfully
- Verify .env files have correct URLs
- Refresh the page/app
- Verify storage bucket
issuesexists - Check it's marked as PUBLIC
- Run storage policies SQL (in supabase-storage-setup.md)
Now that it's working:
- Read Full Guide:
PRODUCTION_SETUP_GUIDE.md - Customize: Update colors, logo, text
- Add Data: Create more test issues
- Invite Team: Share admin panel URL
- Deploy: Follow production deployment guide
npm run dev # Start development
npm run build # Build for production
npm start # Run production build
npm run lint # Check code qualitynpm start # Start Expo
npm run android # Open Android
npm run ios # Open iOS
expo start -c # Clear cache- Keep both terminals running while developing
- Use Chrome DevTools for admin panel debugging
- Use Expo DevTools for mobile app debugging
- Create test accounts for different user types
- Check browser console for any errors
Before moving to production:
- SQL schema executed successfully
- Storage bucket created
- Admin panel loads without errors
- Can create admin account
- Can login to admin
- User app loads on device
- Can create user account
- Can report an issue
- Issue appears in admin
- Can update issue status
- Can add comments
- Can vote on issues
- Real-time updates work
Happy Building! 🎊
Need help? Check PRODUCTION_SETUP_GUIDE.md for detailed instructions.