Skip to content

trupalgorasiya/bakery-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🧁 Bakery Management System

A full-stack web application designed for bakery businesses to manage customers, orders, inventory, custom cakes, deliveries, and more — supporting role-based dashboards for Admin, Delivery, and Customer.


📘 Project Overview

This system streamlines operations across departments of a bakery business — from product browsing and order management to custom cake requests and delivery tracking. Built with scalability and usability in mind, it provides both frontend and backend role-based access to different user types.


🏗️ Tech Stack

Layer Tech Used
Frontend React.js, React Router, CSS Modules
Backend Node.js, Express.js
Database MongoDB (Mongoose)
Auth JWT, Bcrypt
Email Nodemailer (Gmail SMTP)
Styling CSS Modules, Tailwind CSS (optional)
Charts Recharts
File Upload Multer, Cloudinary
Deployment Vercel (frontend), Render (backend), MongoDB Atlas

🔐 User Roles & Permissions

Role Access & Features
Admin Full access: users, orders, products, inventory, custom cakes, reviews, analytics
Manager View/manage inventory, product stocks, coordinate with delivery
Delivery View assigned orders, update status, track delivery history
Customer Register, browse products, order, track orders, wishlist, custom cake requests

🌐 Frontend Pages Overview

🧭 Public Pages

  • Home, About Us, Contact, FAQ
  • Product Listing by Category
  • Product Details

👤 Auth Pages

  • Login / Register / OTP Verification
  • Forgot & Reset Password

🛍️ Customer Dashboard

  • Profile & Edit
  • Orders (track/cancel)
  • Wishlist
  • Coupons
  • Notifications
  • Submit Reviews
  • Custom Cake Requests

🛠️ Admin Panel

  • Dashboard (Revenue, Orders, Users)
  • Manage Products, Orders, Users, Categories
  • Inventory (Low Stock Alerts)
  • Assign Delivery Staff
  • Manage Coupons, Reviews, Notifications
  • View Analytics Charts

🚚 Delivery Dashboard

  • Assigned Orders
  • Update Delivery Status
  • Delivery History

🔁 Order & Email Flow

📦 Order Lifecycle

  1. Customer places an order
  2. Admin is notified via email
  3. Admin updates status: Preparing → Packed → Out for Delivery → Delivered
  4. Delivery person assigned & notified
  5. Customer receives real-time email + dashboard notifications

📩 Email Notifications

Event Admin Customer Delivery
New Order
Assign Delivery
Order Status Change
Order Delivered

🧠 Features at a Glance

  • 🧁 Product Browsing by Category
  • 🛒 Cart & Checkout System
  • 📦 Order History with Real-time Status Updates
  • 🎂 Custom Cake Order Requests
  • 💸 Coupon & Discount System
  • 🔔 Real-time Notifications (Email & UI)
  • 🧾 PDF Invoice Generation (Optional)
  • 📊 Admin Dashboard with Charts & Reports
  • 📤 File Uploads with Multer / Cloudinary
  • 🔐 OTP-based Email Verification & Password Reset
  • 🧺 Inventory Tracking with Low Stock Alerts
  • 💬 Optional Chat/Support System

🔗 Backend API Endpoints (Sample)

🛡️ Auth

  • POST /api/auth/register
  • POST /api/auth/login
  • POST /api/auth/forgot-password
  • POST /api/auth/verify-otp
  • PUT /api/auth/reset-password

🛍️ Products

  • GET /api/products
  • POST /api/products (admin)
  • PUT /api/products/:id
  • DELETE /api/products/:id

🧾 Orders

  • POST /api/orders
  • GET /api/orders/me
  • PUT /api/orders/:id/status
  • PUT /api/orders/:id/cancel

🎂 Custom Cakes

  • POST /api/custom-cakes
  • GET /api/custom-cakes (admin only)

📊 Admin Dashboard Cards

  • 📦 Total Orders
  • 💸 Total Revenue
  • 👤 Total Users
  • 🔔 Notifications
  • 📈 Revenue Trend (6 Months)

📁 Folder Structure

📦 /server ├── config/ ├── controllers/ ├── middleware/ ├── models/ ├── routes/ ├── utils/ ├── uploads/product-images/

📦 /client ├── public/ └── src/ ├── api/ ├── assets/ ├── components/ │ ├── Layout/ │ └── UI/ ├── contexts/ ├── hooks/ ├── pages/ │ ├── Auth/ │ ├── Public/ │ ├── User/ │ ├── Admin/ │ ├── Manager/ │ ├── Delivery/ │ └── CustomCake/ ├── services/ ├── styles/ ├── App.jsx └── main.jsx

yaml Copy Edit


🚀 Deployment

Layer Platform
Frontend Vercel / Netlify
Backend Render / Railway
Database MongoDB Atlas

👨‍💻 Author

Trupal Gorasiya – Full-Stack Developer & System Designer

📧 Contact 📩 Email: trupalgorasiya510@gmail.com 🔗 LinkedIn: https://www.linkedin.com/in/trupal-gorasiya/ 🌐 GitHub: https://github.com/trupalgorasiya/


📌 License

This project is open-source and free to use for educational and personal projects.

Thank you for reviewing the Bakery Management System. Happy coding! ❤️

About

Full-stack Bakery Management System with React, Node, MongoDB & Role-Based Access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors