{"id":31794333,"url":"https://github.com/pradeep-r04/hostel-mess-management","last_synced_at":"2026-02-18T11:03:25.520Z","repository":{"id":315848566,"uuid":"1061028918","full_name":"pradeep-r04/hostel-mess-management","owner":"pradeep-r04","description":"The Mess Food Management System is a full-stack web application designed to simplify and digitize hostel mess operations. It provides a convenient platform for students and faculty to register, log in, and select their meals based on a pre-defined weekly menu for breakfast, lunch, snacks, and dinner. ","archived":false,"fork":false,"pushed_at":"2025-12-27T15:04:54.000Z","size":4742,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T11:17:35.557Z","etag":null,"topics":["css","html","javascript","node","sql"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pradeep-r04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T05:01:29.000Z","updated_at":"2025-12-27T15:04:57.000Z","dependencies_parsed_at":"2025-09-21T07:17:44.285Z","dependency_job_id":null,"html_url":"https://github.com/pradeep-r04/hostel-mess-management","commit_stats":null,"previous_names":["pradeep-r04/hostel-mess-management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pradeep-r04/hostel-mess-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep-r04%2Fhostel-mess-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep-r04%2Fhostel-mess-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep-r04%2Fhostel-mess-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep-r04%2Fhostel-mess-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradeep-r04","download_url":"https://codeload.github.com/pradeep-r04/hostel-mess-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep-r04%2Fhostel-mess-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","html","javascript","node","sql"],"created_at":"2025-10-10T19:29:40.550Z","updated_at":"2026-02-18T11:03:25.514Z","avatar_url":"https://github.com/pradeep-r04.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍽️ Mess Food Management System (Campus Cravings)\n\nA full-stack **web application** for managing hostel mess food services.  \nIt allows **students/faculty** to register, log in, select food items based on the day and meal type, generate a **QR code** for their orders, and enables the **admin** to scan and view all mess orders in a tabular format.\n\n---\n\n## 🚀 Features\n\n### 👨‍🎓 Student / Faculty\n- Register as a new user with details like:\n  - Name, Mobile, Enrollment No / Faculty ID, Mess ID, Course\n- Login with Enrollment No, Name, and Password\n- Select day \u0026 meal type (**Breakfast, Lunch, Snacks, Dinner**)\n- View **pre-defined menu** for the chosen day \u0026 meal\n- Enter quantity of items\n- Generate **QR code** with food order details\n\n---\n\n### 🛠️ Admin\n- Login with admin credentials\n- View all orders in a **tabular format**\n  - Student/Faculty details (Name, Enrollment No, Mess ID)\n  - Ordered food items with quantities\n  - Order timestamp (day, time, meal type)\n- Data stored securely in MySQL\n\n---\n\n## 🏗️ Project Structure\nProject/  \n|  \n├── backend/ # Node.js backend  \n│ ├── app.js # Main server file  \n│ ├── db.js # Database connection  \n│ ├── routes/ # Express routes  \n│ │ ├── auth.js # User register/login  \n│ │ ├── food.js # Food order \u0026 QR generation   \n│ │ └── admin.js # Admin login \u0026 orders view  \n│ ├── package.json # Dependencies  \n│ └── schema.sql # Database schema  \n│  \n├── database/  \n│ └── schema.sql # SQL script to create DB \u0026 tables  \n│  \n├── frontend/ # Frontend (HTML, CSS, JS)  \n│ ├── index.html # Homepage  \n│ ├── login.html # Student/Faculty login  \n│ ├── register.html # User registration  \n│ ├── food.html # Food selection + QR code   \n│ ├── admin.html # Admin login \u0026 order table  \n│ └── css/ # Stylesheets (if any)  \n│  \n└── README.md # Project documentation  \n\n\n---\n\n## ⚙️ Setup Instructions\n\n### 1️⃣ Install Dependencies\nMake sure you have:\n- [Node.js](https://nodejs.org/) installed\n- [MySQL](https://dev.mysql.com/downloads/) installed \u0026 running\n\nClone the repo and install dependencies:\n```\ncd backend  \nnpm install  \n```\n### 2️⃣ Setup Database\n\nLogin to MySQL and create database + tables:  \n```\nSOURCE C:/path/to/schema.sql;\n```\nThe schema creates:  \n- users table  \n- orders table  \n- admins table  \nUpdate db.js with your MySQL credentials.\n\n### 3️⃣ Run the Server\n```\nnode app.js  \n```\nServer will start at:\n👉 http://localhost:5000\n\n### 4️⃣ Run Frontend\n\nOpen any frontend HTML file (index.html, login.html, etc.) in a browser.  \nRecommended: use Live Server extension (VS Code) for smoother experience.  \n\n---\n\n📡 API Endpoints  \nUser  \n- ```POST /auth/register``` → Register new user  \n- ```POST /auth/login``` → Login user  \n\nFood  \n- ```POST /food/order``` → Place order + generate QR  \n\nAdmin  \n- ```POST /admin/login``` → Admin login  \n- ```GET /admin/orders``` → Fetch all orders (with user details)   \n\n---\n\n## 📷 Screenshots (Sample)\n## Homepage – with banner, navigation, and login/register buttons  \n\u003cimg width=\"1919\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/068d4410-b263-4863-9290-a222abfb5f53\" /\u003e  \n\u003cimg width=\"1919\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d330a6a5-afaf-439a-9758-428cf4f12e36\" /\u003e  \n\u003cimg width=\"1919\" height=\"1015\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/8a4c79e8-c83b-49fc-a362-587c7b675806\" /\u003e  \n\n---\n## Food Selection – choose day, meal type, and quantities  \n\u003cimg width=\"1919\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d5c46e3a-c441-4436-94d7-92ecd1e1357c\" /\u003e  \n\n---\n## Student/Faculty Login  \n\u003cimg width=\"1919\" height=\"1016\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f6f61376-785c-464d-8869-6a16ffbca7c3\" /\u003e  \n\n---\n## Admin Login  \n\u003cimg width=\"1919\" height=\"1015\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5f715d79-4600-4a01-8745-39ebb12cf457\" /\u003e   \n\n---\n## Register New User   \n\u003cimg width=\"1919\" height=\"1015\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4bd04397-bc97-44bd-a095-59edf16dffb0\" /\u003e\n\n---\n\n## 🔮 Future Improvements  \n- Allow admin to scan QR codes directly via camera  \n- Add weekly menu editor for admin  \n- Improve UI with Tailwind/Bootstrap  \n\n---\n\n## 👨‍💻 Author  \nDeveloped by ***Pradeep Singh ✨***  \nFor CDAC Hostel Mess Management.  \n\n---\n\n## ✍️ About Developer  \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/a615929b-6615-46fc-9046-19a7ed74d5c0\" alt=\"Developer Image\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003ePradeep Singh\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pradeep-r04\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/in/pradeep-singh4/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\"/\u003e\n  \u003c/a\u003e\n\t\u003ca href=\"https://www.instagram.com/in/whypradeeep/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Instagram-F72D3B?style=for-the-badge\u0026logo=instagram\u0026logoColor=white\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\n## Connect with me:\n| Name    | Email              | LinkedIn                                      | GitHub                      | Instagram                     |\n|---------|--------------------|-----------------------------------------------|-----------------------------|-------------------------------|\n| Pradeep | [Email](pradeep.singh04r@gmail.com)  | [LinkedIn](https://linkedin.com/in/pradeep-singh4) | [GitHub](https://github.com/pradeep-r04) | [Instagram](https://instagram.com/whypradeeep) |    \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep-r04%2Fhostel-mess-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradeep-r04%2Fhostel-mess-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep-r04%2Fhostel-mess-management/lists"}