A complete food safety platform with frontend and backend integration for vendor booking, reviews, and hygiene reporting.
- Navigate to the
backendfolder - Double-click
start-server.bat(Windows) or run:cd backend npm install npm start - Server will start on
http://localhost:3000
- Open any HTML file in your browser (homepage.html recommended)
- Make sure the backend server is running for full functionality
CleanBite/
├── backend/
│ ├── server.js # Express server
│ ├── package.json # Dependencies
│ ├── start-server.bat # Windows startup script
│ └── data/ # JSON data storage (auto-created)
├── js/
│ └── api.js # Frontend-backend integration
├── homepage.html # Main landing page
├── booking.html # Event booking system
├── profile.html # User profile management
├── vendor detailpage.html # Vendor details with booking
├── login.html # User authentication
├── signup.html # User registration
└── report.html # Hygiene reporting
- Signup: Create new user accounts
- Login: Authenticate existing users
- Profile Management: Update user information
- Session Persistence: Login state maintained across pages
- Vendor Selection: Choose from certified vendors
- Event Booking: Complete booking workflow
- Booking History: View past and current bookings
- Real-time Notifications: Booking confirmations
- Auto-save: Form data preserved during session
- Write Reviews: Rate and review vendors
- Star Ratings: 5-star rating system
- Comment System: Detailed feedback
- Hygiene Reports: Submit safety concerns
- Issue Tracking: Report status monitoring
- JSON Storage: File-based data storage
- Auto-backup: Data automatically saved
- Local Storage: Client-side form auto-save
POST /api/signup- Create new userPOST /api/login- User login
POST /api/bookings- Create bookingGET /api/bookings/:userId- Get user bookings
POST /api/reviews- Submit review
POST /api/reports- Submit hygiene report
PUT /api/profile/:userId- Update profile
- Start Backend: Run
start-server.bat - Open Frontend: Access
homepage.html - Create Account: Use signup.html
- Login: Use login.html
- Browse Vendors: View vendor details
- Book Events: Complete booking process
- Manage Profile: Update user information
- Input validation on all forms
- CORS protection
- Data sanitization
- Session management
- Mobile-friendly interface
- Dark/light mode support
- Touch-optimized interactions
- Progressive enhancement
- Frontend: HTML5, CSS3, JavaScript, TailwindCSS
- Backend: Node.js, Express.js
- Storage: JSON files
- Icons: Material Symbols
- Fonts: Plus Jakarta Sans
- Ensure Node.js is installed
- Check port 3000 is available
- Verify file permissions for data folder
- Enable JavaScript in browser
- Check browser console for errors
- Ensure backend server is running
- Data stored in
backend/data/folder - Delete JSON files to reset data
- Backup data folder before updates
- Real-time notifications
- Payment integration
- Advanced search filters
- Mobile app development
- Analytics dashboard
CleanBite - Ensuring street food is safe for everyone. 🍴✨