How nicoooo-23/dine-o-rama works
Dine-O-Rama is a restaurant directory and food-court management system. Visitors browse restaurants through search and filters, and the homepage also highlights top-rated picks. Administrators log in to add, edit, or delete restaurant records. Browser scripts call Express API routes; the server validates and handles requests, while MongoDB stores restaurant data. On startup, the server inserts bundled sample records if the collection is empty. The excerpts show the client/API and server/storage links; page-to-script wiring is not shown, so it is omitted.
Main entry points: server.js Restaurant API · admin.js Admin controls · seedData.js Initial restaurants · home.js Search and filters
Components 11
Browser experience
- Directory page
public/index.html - Search and filters
public/home.js - Popular picks
public/shared.js - Admin page
public/admin.html - Admin controls
public/admin.js
Application backend
- Restaurant API
server.js - Admin authentication
server.js
Restaurant data
- Restaurants collection
- Initial restaurants
seedData.js
Other components
- Visitor
- Administrator
Connections 10
- Visitor → Directory page: browses
README.md - Administrator → Admin page: manages
README.md - Search and filters → Restaurant API: fetches listings
public/home.js - Popular picks → Restaurant API: fetches picks
public/shared.js - Admin controls → Admin authentication: logs in/out
public/admin.js - Admin controls → Restaurant API: reads and edits
public/admin.js - Restaurant API → Restaurants collection: queries and writes
server.js - Admin authentication → Restaurant API
server.js - Restaurant API → Initial restaurants: loads when empty
server.js - Initial restaurants → Restaurants collection: provides initial records