How unnatibamania/canteen-management-system works
Project type and purpose
• This is a full-stack MERN (MongoDB, Express, React, Node.js) web application called “Canteen Management System.”
• Purpose: Allow students/teachers to browse food items, place orders, have admin confirmation, and process payments (online via Stripe or offline).
File structure
• Top-level:
• server.js (entry point of Express)
• config/db.js (MongoDB connection)
• models/ (Mongoose schemas: auth, food, order)
• routes/ (Express routers: auth, food, order)
• middleware/ (authentication & Cloudinary image upload)
• Frontend:
• frontend/src: React application built with Redux for state management
• pages/, components/, redux/ (actions, reducers, types, store)
• public/ & build/: static assets and production bundle
• Package files and .gitignore at both root and frontend.
README for technical stack & features
• Backend: Express.js + MongoDB
• Frontend: React.js + Redux
• Core features: user auth, order placement, admin confirmation, Stripe integration for payments.
Final advice
• Be detailed: break out sub-components (e.g., Redux store, middleware) where it clarifies responsibilities.