Skip to content

venkatProfessional/java_selenium_hybrid_framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Balaji Threads Shop - E-commerce Application

A comprehensive frontend-only React.js e-commerce application for "Balaji Threads Shop" featuring modern UI, complete state management, and extensive functionality for both customers and administrators.

Balaji Threads Shop

๐ŸŒŸ Features

User Features

  • Homepage: Hero carousel, featured products, category browsing
  • Product Catalog: Advanced search, filtering, sorting, pagination
  • Product Details: Image zoom, variants, reviews, related products
  • Shopping Cart: Quantity management, save for later, estimated delivery
  • Wishlist: Save favorite products, move to cart
  • Checkout: Guest/user checkout, address management, payment simulation
  • Order History: Track orders, reorder functionality
  • User Profile: Account management, address book
  • Product Comparison: Side-by-side comparison (up to 4 products)
  • Recently Viewed: Track browsing history
  • Multi-language: English and Hindi support
  • Dark/Light Mode: Theme switching with persistence
  • Responsive Design: Mobile-first approach

Admin Features

  • Dashboard: Sales metrics, inventory alerts, analytics
  • Product Management: CRUD operations, bulk import/export
  • Order Management: Status updates, order tracking
  • User Management: User roles, account management
  • Inventory Management: Stock tracking, low stock alerts
  • Promo Code Management: Discount code creation and management
  • Analytics: Sales trends, popular products, user activity
  • Audit Logging: Track all admin actions
  • Notifications: Real-time alerts for orders and inventory

๐Ÿ›  Technology Stack

  • Framework: React 18 with Hooks
  • Routing: React Router DOM v6
  • State Management: Context API with useReducer
  • Styling: Tailwind CSS with custom theme
  • UI Components: Headless UI for accessible components
  • Icons: Heroicons
  • Internationalization: i18next
  • Charts: Chart.js for analytics
  • Data Export: XLSX for CSV/Excel export
  • Build Tool: Create React App
  • Data Persistence: localStorage (simulating backend)

๐ŸŽจ Design System

Color Palette

  • Primary: Deep Blue (#1e40af) - Representing trust and reliability
  • Secondary: Gold (#f59e0b) - Indian textile luxury accent
  • Background: White/Dark Gray - Clean, modern appearance
  • Textile Colors: Saffron, Maroon, Emerald, Royal Blue

Typography

  • Primary: System fonts for optimal performance
  • Hindi Support: Noto Sans Devanagari for Hindi text
  • Responsive: Fluid typography scaling

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 16+ and npm/yarn
  • Modern web browser with JavaScript enabled

Installation

  1. Clone the repository
git clone <repository-url>
cd balaji-threads-shop
  1. Install dependencies
npm install
# or
yarn install
  1. Start the development server
npm start
# or
yarn start
  1. Open your browser Navigate to http://localhost:3000

Build for Production

npm run build
# or
yarn build

The build folder will contain optimized production files ready for deployment.

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ components/           # Reusable UI components
โ”‚   โ”œโ”€โ”€ common/          # Shared components (ProductCard, etc.)
โ”‚   โ””โ”€โ”€ layout/          # Layout components (Header, Footer)
โ”œโ”€โ”€ contexts/            # React Context providers
โ”‚   โ””โ”€โ”€ AppContext.js    # Main application state
โ”œโ”€โ”€ pages/               # Page components
โ”‚   โ”œโ”€โ”€ auth/           # Authentication pages
โ”‚   โ”œโ”€โ”€ admin/          # Admin panel pages
โ”‚   โ””โ”€โ”€ [other-pages]   # Public pages
โ”œโ”€โ”€ i18n/               # Internationalization
โ”‚   โ””โ”€โ”€ index.js        # Language configuration
โ”œโ”€โ”€ App.js              # Main app component with routing
โ””โ”€โ”€ index.js            # Application entry point

๐Ÿ” Authentication & Authorization

Demo Credentials

Admin Access:

  • Username: admin
  • Password: admin
  • Access: /admin/login

User Registration:

  • Open registration available
  • Demo accounts can be created

Security Note

โš ๏ธ This is a demo application. All authentication is simulated using localStorage. In a production environment, implement proper backend authentication, password hashing, and security measures.

๐Ÿ’พ Data Management

Local Storage Structure

The application stores all data in localStorage with the key balajiThreadsData:

{
  products: [],      // Product catalog
  users: [],         // User accounts
  cart: [],          // Shopping cart items
  wishlist: [],      // Wishlist items
  orders: [],        // Order history
  reviews: [],       // Product reviews
  notifications: [], // System notifications
  auditLog: [],      // Admin action log
  promoCodes: [],    // Discount codes
  // ... other data
}

Data Import/Export

  • Backup: Download all data as JSON
  • Restore: Upload JSON file to restore data
  • CSV Export: Export orders and products as CSV
  • Bulk Import: JSON-based product import

๐ŸŒ Internationalization

The application supports English and Hindi:

  • Language Toggle: Available in header
  • Persistent: Language preference saved to localStorage
  • RTL Support: Prepared for future RTL language support
  • Currency: Indian Rupee (โ‚น) formatting

๐Ÿ“ฑ Responsive Design

Breakpoints

  • Mobile: < 640px
  • Tablet: 640px - 1024px
  • Desktop: > 1024px

Key Features

  • Mobile-first design approach
  • Touch-friendly interface
  • Optimized images and performance
  • Accessible navigation patterns

โ™ฟ Accessibility

Features Implemented

  • ARIA Labels: Comprehensive screen reader support
  • Keyboard Navigation: Full keyboard accessibility
  • Focus Management: Proper focus indicators
  • Color Contrast: WCAG 2.1 AA compliance
  • Semantic HTML: Proper heading hierarchy
  • Alt Text: Image descriptions for screen readers

๐Ÿš€ Deployment

Vercel (Recommended)

  1. Connect your GitHub repository to Vercel
  2. Configure build settings:
    • Build Command: npm run build
    • Output Directory: build
  3. Deploy automatically on push

Netlify

  1. Connect repository to Netlify
  2. Build settings:
    • Build command: npm run build
    • Publish directory: build

Other Platforms

The built application is a static site compatible with:

  • GitHub Pages
  • AWS S3 + CloudFront
  • Firebase Hosting
  • Surge.sh

๐Ÿงช Testing

Manual Testing Checklist

  • Homepage loads with featured products
  • Navigation works across all pages
  • Product search and filtering
  • Cart operations (add, remove, update)
  • Wishlist functionality
  • Theme switching (light/dark)
  • Language switching (English/Hindi)
  • Responsive design on mobile
  • Admin panel access and operations
  • Data persistence across sessions

Browser Compatibility

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

๐Ÿ“Š Performance Optimization

Implemented Optimizations

  • Code Splitting: Dynamic imports for route-based splitting
  • Image Optimization: Lazy loading and responsive images
  • Memoization: React.memo for component optimization
  • Bundle Analysis: Optimized dependencies
  • Caching: localStorage for data persistence

Performance Metrics

  • Lighthouse Score: 90+ (Performance, Accessibility, SEO)
  • First Contentful Paint: < 2s
  • Largest Contentful Paint: < 3s

๐Ÿ› Known Limitations

  1. No Real Backend: All data is stored in localStorage
  2. No Real Payments: Payment processing is simulated
  3. No Email: Email notifications are mocked
  4. Single Device: Data not synced across devices
  5. Storage Limits: localStorage has size limitations

๐Ÿ”ฎ Future Enhancements

Planned Features

  • Real backend integration (Node.js/Express)
  • Payment gateway integration (Stripe/Razorpay)
  • Email notification system
  • Advanced search with Elasticsearch
  • Progressive Web App (PWA) features
  • Real-time notifications with WebSocket
  • Advanced analytics dashboard
  • Multi-vendor marketplace support

๐Ÿ“ž Support

For questions, issues, or contributions:

  1. Issues: Create a GitHub issue
  2. Documentation: Check this README
  3. Demo: Visit the live demo at [deployment-url]

๐Ÿ“„ License

This project is created for educational and demonstration purposes.

Important: This is a demo application. All products, transactions, and user data are simulated. No real payments are processed.

๐Ÿ™ Acknowledgments

  • Unsplash: Product and hero images
  • Heroicons: Beautiful SVG icons
  • Tailwind CSS: Utility-first CSS framework
  • React Community: Amazing ecosystem and resources

Made with โค๏ธ in India for the textile industry

Balaji Threads Shop - Quality Threads for Every Need

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages