Last Updated: October 27, 2025 Latest Enhancements: Input validation, sanitization, and business logic improvements
Navigate to the csr_app folder
Option A - Windows Command Prompt (CMD):
run.batOption B - Windows PowerShell:
.\run.ps1Option C - Manual Start:
# Terminal 1
python app.py
# Terminal 2 (new terminal window)
npm run devGo to: http://localhost:3000
- Username: admin
- Password: (as set in Supabase)
- Role: User Admin
Once logged in as User Admin, you have access to:
β View All Users - See list of all registered users β Create Users - Add new users to the system β Search Users - Find users by name, email, or username β Update Users - Edit user information β Suspend Users - Deactivate user accounts β Activate Users - Reactivate suspended accounts
- Frontend: http://localhost:3000
- Backend: http://localhost:5000
- API Health: http://localhost:5000/api/health
Create test users from the dashboard for testing different roles:
- User Admin
- PIN
- CSR Rep
- Platform Management
All user input is automatically validated and sanitized:
Username Requirements:
- 3-20 characters
- Alphanumeric + hyphens/underscores
Password Requirements:
- Minimum 8 characters
- Must have uppercase letter (A-Z)
- Must have lowercase letter (a-z)
- Must have digit (0-9)
- Example:
SecurePass123β
Email Requirements:
- Valid email format
- Must be unique (no duplicates)
- Example:
user@example.comβ
Full Name Requirements:
- 2-100 characters
- Must contain letters
If validation fails, you'll get a clear error message telling you what's wrong!
If you get "Port 5000 in use" or "Port 3000 in use":
- Close other applications using these ports
- Or change ports in
.envfile
- Install Python from https://www.python.org/
- Make sure to check "Add to PATH" during installation
- Install Node.js from https://nodejs.org/
- Make sure to check "Add to PATH" during installation
- Delete the
venvfolder - Run
run.batorrun.ps1again
See:
README.md- Full documentationVALIDATION_SUMMARY.md- Complete validation referenceQUICK_REFERENCE.md- API quick referenceADMIN_DASHBOARD_GUIDE.md- Dashboard featuresHOW_JSON_AND_WEB_WORKS.md- Understanding JSON & web requests
- Never commit
.envfile to git - Keep your Supabase credentials secret
- Change JWT secret keys in production
Happy Coding! π