Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BakeryManagementSystem/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍞 Bakery Management System - Frontend

A modern React.js frontend application for the Bakery Management System, providing an intuitive interface for managing bakery operations, inventory, orders, and analytics.

πŸ“Œ Project Overview

This is the client-side application of the Bakery Management System, built with React.js and JavaScript. It provides a responsive, user-friendly interface for bakery staff and administrators to manage daily operations efficiently.

πŸ‘₯ Team Members

Member Student ID Role WakaTime Stats
Adel Mohammad Zahid 20220204057 Project Setup & Dashboard wakatime
Saleh Mahmud Sami 20220204061 Product & Inventory UI wakatime
Md. Rubayet Islam 20220204069 Orders & Analytics UI wakatime
Abhishek Sarker 20220204104 Expense & AI Interface wakatime

Team Contributions Dashboard

Team WakaTime Stats

Design System

  • Colors: Brand color palette
    • Primary: #6639a6 (Deep Purple)
    • Secondary: #7f4fc3 (Medium Purple)
    • Accent: #9b75d0 (Light Purple)
    • Dark: #4f2c80 (Dark Purple)
    • Light: #ffffff (White)
    • Neutral: #e6e6e6 (Light Gray)
  • Typography: Clean, readable fonts optimized for business use
  • Layout: Responsive design supporting desktop, tablet, and mobile
  • Components: Consistent component library following design system

🎯 Features

🏠 Dashboard

  • Real-time business metrics and KPIs
  • Sales overview and trend charts
  • Low stock alerts and notifications
  • Quick action buttons for common tasks

🧁 Product Management

  • Visual product catalog with image support
  • Advanced search and filtering
  • Category-based organization
  • Bulk operations and batch updates

πŸ“¦ Inventory Management

  • Real-time stock level indicators
  • Interactive stock adjustment tools
  • Low stock alert notifications
  • Inventory reports and analytics

πŸ›’ Order Processing

  • Streamlined order creation interface
  • Point-of-Sale (POS) system
  • Order status tracking
  • Customer management integration

πŸ“Š Analytics & Reporting

  • Interactive charts and graphs
  • Customizable date range selection
  • Export functionality (PDF, Excel)
  • Real-time data visualization

πŸ€– AI Assistant

  • Natural language query interface
  • Business insights and recommendations
  • Interactive chat with conversation history

πŸ›  Technology Stack

  • Framework: React 18 with JavaScript
  • Build Tool: Vite
  • State Management: React Context API / Redux Toolkit
  • Routing: React Router v6
  • HTTP Client: Axios
  • UI Components: Material-UI (MUI) / Tailwind CSS
  • Charts: Chart.js / Recharts
  • Form Handling: React Hook Form
  • Validation: Yup
  • Icons: Lucide React / Material Icons

πŸš€ Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • Backend API server running

Installation

  1. Clone the repository

    git clone https://github.com/your-username/bakery-frontend.git
    cd bakery-frontend
  2. Install dependencies

    npm install
  3. Environment Setup

    VITE_API_URL=http://localhost:8000/api
    VITE_APP_NAME="Bakery Management System"
    VITE_OPENAI_API_KEY=your-openai-key
    VITE_APP_VERSION=1.0.0
  4. Start Development Server

    npm run dev
  5. Build for Production

    npm run build

πŸ“ Project Structure

src/
β”œβ”€β”€ components/          # Reusable UI components
β”‚   β”œβ”€β”€ common/         # Common components
β”‚   β”œβ”€β”€ forms/          # Form components
β”‚   └── layout/         # Layout components
β”œβ”€β”€ pages/              # Page components
β”‚   β”œβ”€β”€ Dashboard/
β”‚   β”œβ”€β”€ Products/
β”‚   β”œβ”€β”€ Inventory/
β”‚   β”œβ”€β”€ Orders/
β”‚   β”œβ”€β”€ Analytics/
β”‚   └── Auth/
β”œβ”€β”€ hooks/              # Custom React hooks
β”œβ”€β”€ services/           # API service functions
β”œβ”€β”€ store/              # State management
β”œβ”€β”€ utils/              # Utility functions
└── styles/             # Global styles

πŸ”§ Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run lint - Run ESLint
  • npm run test - Run unit tests

🎨 UI/UX Design

Design System

  • Colors: Primary bakery-themed color palette
  • Typography: Clean, readable fonts optimized for business use
  • Layout: Responsive design supporting desktop, tablet, and mobile
  • Components: Consistent component library following design system

Figma Design

➑️ View Complete Design System

πŸ”Œ API Integration

The frontend communicates with the backend API using Axios for HTTP requests. Authentication is handled through JWT tokens with automatic token refresh and secure storage.

Key Service Areas

  • Authentication: Login, logout, and token management
  • Products: CRUD operations for product management
  • Inventory: Stock level tracking and adjustments
  • Orders: Order creation and management
  • Analytics: Dashboard metrics and reporting data

πŸ§ͺ Testing

Testing Stack

  • Framework: Vitest
  • Testing Library: React Testing Library

Running Tests

npm run test
npm run test:coverage

πŸ“Š Performance Optimization

  • Code splitting with React.lazy()
  • Route-based code splitting
  • Component lazy loading
  • Image optimization and lazy loading
  • API response caching

🌐 Deployment

Build Process

npm run build
npm run preview

Recommended Platforms

  • Vercel (Recommended)
  • Netlify
  • AWS S3 + CloudFront

πŸ”’ Security

Authentication & Security Features

  • JWT token-based authentication
  • Automatic token refresh
  • Role-based route protection
  • Input sanitization and XSS protection
  • Secure API communication

πŸ“± Responsive Design

Breakpoints

  • Mobile: 320px - 768px
  • Tablet: 768px - 1024px
  • Desktop: 1024px+

Mobile Optimizations

  • Touch-friendly interface
  • Responsive navigation
  • Optimized forms
  • Fast loading performance

πŸ“‹ Development Checkpoints

Checkpoint 1: Foundation βœ…

  • Project setup with React + JavaScript + Vite
  • Authentication system and protected routes
  • Basic dashboard layout and navigation
  • Responsive design foundation

Checkpoint 2: Core Features πŸ”„

  • Product management interface
  • Inventory management dashboard
  • Order processing system
  • Analytics and reporting interface

Checkpoint 3: Advanced Features ⏳

  • Expense management interface
  • AI assistant chat interface
  • Performance optimization
  • Final testing and deployment

πŸ”— Related Repositories

πŸ“„ License

This project is developed for CSE 3104 Database Lab at Ahsanullah University of Science and Technology and is intended for academic purposes.


Course: CSE 3104 Database Lab
Institution: Ahsanullah University of Science and Technology
Semester: Fall 2024

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •