How hthapar/hotelmenu works
Project type and purpose
• From the README (“hotelMenu: using mongo db to add, fetch data and display in form, add data in db”) and the presence of package.json/node_modules, this is a simple full-stack web application.
• The front end consists of static HTML/CSS/JS (index.html, menu.html, public/css/styles.css, script.js). The back end is a Node.js service (implied by package.json) exposing REST endpoints to work with a MongoDB database.
File structure
• Top level:
• index.html, menu.html – main views
• script.js – front-end application logic (fetch calls)
• package.json, node_modules – Node.js back end
• public/css/styles.css – styling assets served statically
• There are no subfolders for “src” or “routes,” so we assume server code lives at the project root (e.g., in an unlisted server.js or in script.js if it contains both front-end and back-end code).
README for additional insights
• The README confirms use of MongoDB for persistence and fetch-based communication from the form pages to the back end.