Internal rewards dashboard for resident points and gift card redemptions.
# Install dependencies
npm install
cd client && npm install && cd ..
# Run everything
npm run dev:allServer runs on http://localhost:3001 Client runs on http://localhost:5173
GET /api/residents- List all residentsGET /api/residents/:id- Get resident detailsPOST /api/auth/login- LoginGET /api/rewards- Get gift card catalogPOST /api/rewards/redeem- Redeem points for gift cardGET /api/transactions/:residentId- Get transaction historyGET /api/admin/residents- Admin: all residents with detailsPOST /api/admin/add-points- Admin: add points to residentGET /api/admin/export- Admin: export all data
- Resident:
maria.garcia@email.com/resident123 - Admin:
admin@casaperks.com/admin123!
- Built quickly for internal demo, needs cleanup before production
- Using mock data for now, will connect to MongoDB later
- TODO: add proper error handling
- TODO: set up deployment pipeline