Easy Buy is a modern, full-featured e-commerce platform that provides a seamless shopping experience for customers and a comprehensive management system for sellers. Built with React, TypeScript, and modern web technologies, Easy Buy offers real-time chat, product management, order tracking, and review systems.
- Live Demo
- Brief Description
- Features
- Application Details
- Tech Stack
- Deployment with Docker
- Running Locally
Experience Easy Buy live at:
🔗 https://easy-buy.shirloin.my.id
The live demo showcases all features of the application including:
- Product browsing and search
- Shopping cart functionality
- User authentication
- Order placement and tracking
- Real-time chat
- Review system
- Seller dashboard (requires seller account)
Note: Demo account credentials would typically be provided here if available.
Easy Buy is a comprehensive e-commerce solution that connects buyers and sellers in a user-friendly marketplace. The platform enables customers to browse products, manage their shopping cart, place orders, track shipments, communicate with sellers via real-time chat, and leave product reviews. Sellers can create shops, manage their product catalog, handle orders, and communicate with customers.
Key highlights:
- User-Friendly Interface: Clean, modern design built with Tailwind CSS and DaisyUI
- Real-Time Communication: Socket.io-powered chat system for instant messaging
- Product Management: Comprehensive product catalog with variants, images, and categories
- Order Management: Complete order lifecycle from cart to shipment
- Review System: Customer feedback and rating system
- Responsive Design: Works seamlessly on desktop and mobile devices
- Latest Products Display: Browse the most recent products added to the platform
- Product Grid Layout: Responsive grid displaying product cards with images, prices, and ratings
- Quick Navigation: Easy access to search and product details
- Product Images: Multiple product images with variant selection
- Product Information: Detailed product description, price, and specifications
- Product Variants: Selection of different product variants (size, color, etc.)
- Shop Information: Display seller shop details and ratings
- User Reviews: View customer reviews and ratings for the product
- Related Products: Suggestions for similar products in the same category
- Add to Cart: Quick add to cart functionality
- Cart Management: View and manage all items in the shopping cart
- Quantity Control: Increase or decrease product quantities
- Item Removal: Remove items from cart
- Price Calculation: Automatic total price calculation
- Checkout Preparation: Review items before proceeding to shipment
- Address Selection: Choose or add shipping addresses
- Order Summary: Review selected items and quantities
- Shipping Details: Configure shipping information
- Order Placement: Complete the purchase process
- Chat Rooms: List of all active chat conversations
- Real-Time Messaging: Socket.io-powered instant messaging
- Seller Communication: Chat with sellers about products or orders
- Message History: View previous conversation history
- Chat Interface: Clean, modern chat UI with message bubbles
- Biodata Section: View and edit user profile information
- Address Management:
- View saved addresses
- Add new shipping addresses
- Edit existing addresses
- Delete addresses
- Order History: View all past and current orders
- Order Tracking: Track order status and details
- Waiting to Review: List of completed orders awaiting review
- My Reviews: View all submitted product reviews
- Review Submission: Submit reviews with ratings and comments
- Review Management: Edit or update existing reviews
- Shop Registration: Create a new seller shop
- Shop Information: Set up shop details and description
Screenshot Placeholder:
- Product List: View all products in the seller's shop
- Product Search: Search and filter products
- Product Actions: Edit, delete, or manage product status
- Product Statistics: View product performance metrics
- Product Information Form:
- Product name and description
- Category selection
- Price and stock management
- Product Variants: Create and manage product variants (size, color, etc.)
- Product Images: Upload multiple product images
- Product Details: Configure detailed product specifications
- Order List: View all orders received
- Order Status: Track and update order status
- Order Details: View detailed order information
- Customer Information: Access customer details for each order
- Customer Conversations: List of all customer chat conversations
- Real-Time Messaging: Respond to customer inquiries instantly
- Order-Related Chats: Manage chats related to specific orders
- User Authentication: Secure login with email/username and password
- Form Validation: Input validation and error handling
- Remember Me: Optional session persistence
- User Registration: Create new user accounts
- Form Validation: Comprehensive input validation
- Account Creation: Set up user profile during registration
Easy Buy follows a modern React application architecture with:
- Component-Based Structure: Modular, reusable components
- State Management: Zustand for client-side state management
- Data Fetching: TanStack Query (React Query) for server state management
- Routing: React Router v6 with protected routes
- Real-Time Features: Socket.io for chat functionality
- Layout Components: Main layout with navbar and footer
- Card Components: Reusable card components for products, orders, reviews, etc.
- Modal Components: Address management modals
- Form Components: Product forms, review forms, etc.
- UI Components: Buttons, tabs, and other UI elements
- Zustand Stores: Local state management for cart, chat, product details, etc.
- React Query: Server state management and caching
- Context API: Authentication context for user management
The application integrates with a RESTful backend API for:
- User authentication and authorization
- Product management
- Cart operations
- Order processing
- Chat functionality
- Review system
- Address management
- Protected Routes: Route guards for authenticated users
- Seller Routes: Special route protection for seller features
- Guest Routes: Redirect authenticated users away from login/register pages
- Token-Based Authentication: Secure API communication
- React 18.3.1: UI library
- TypeScript 5.2.2: Type-safe JavaScript
- Vite 5.3.1: Build tool and development server
- React Router DOM 6.24.1: Client-side routing
- Zustand 4.5.4: Lightweight state management
- TanStack React Query 5.51.23: Server state management and data fetching
- Tailwind CSS 3.4.4: Utility-first CSS framework
- DaisyUI 4.12.10: Component library for Tailwind CSS
- PostCSS 8.4.39: CSS processing
- Autoprefixer 10.4.19: CSS vendor prefixing
- Axios 1.7.2: HTTP client for API requests
- Socket.io Client 4.7.5: Real-time bidirectional communication
- React Icons 5.2.1: Icon library
- React Hot Toast 2.4.1: Toast notifications
- React Simple Star Rating 5.1.7: Star rating component
- Swiper 11.1.9: Touch slider/carousel
- ESLint 8.57.0: Code linting
- TypeScript ESLint: TypeScript-specific linting rules
- Prettier 3.3.3: Code formatter
- Prettier Plugin Tailwind CSS: Tailwind class sorting
- Docker: Containerization
- Nginx 1.27.4: Web server for production
- Node.js 22: Runtime environment
Easy Buy uses Docker for containerized deployment. The application is built with a multi-stage Dockerfile for optimal production builds.
The Dockerfile uses a multi-stage build process:
-
Build Stage:
- Uses
node:22-alpineas base image - Installs dependencies
- Builds the production-ready application
- Creates environment variables file
- Uses
-
Production Stage:
- Uses
nginx:1.27.4as base image - Copies built assets from build stage
- Configures Nginx for serving the React SPA
- Uses
The project includes docker-compose.yml for easy deployment:
version: "3.8" services: frontend: build: . image: frontend-web-easy-buy container_name: frontend-web-easy-buy ports: - "7654:3000" env_file: - .env
Create a .env file with the following variables:
VITE_API_BASE_URL=your_api_base_url VITE_SOCKET_URL=your_socket_url VITE_NODE_ENV=production
# Build and start the container docker-compose up -d --build # View logs docker-compose logs -f # Stop the container docker-compose down
# Build the Docker image docker build -t easy-buy-frontend . # Run the container docker run -d \ -p 7654:80 \ --name easy-buy-frontend \ --env-file .env \ easy-buy-frontend
For production deployment:
- Set up environment variables in your deployment platform
- Build the Docker image
- Push to container registry (Docker Hub, AWS ECR, etc.)
- Deploy to your hosting platform (Vercel, AWS, DigitalOcean, etc.)
The application will be served on port 80 inside the container (configurable via PORT environment variable).
- Node.js: Version 18 or higher
- npm: Version 9 or higher (comes with Node.js)
- Git: For cloning the repository
-
Clone the repository
git clone <repository-url> cd easy-buy-frontend
-
Install dependencies
npm install
-
Create environment file
Create a
.envfile in the root directory:VITE_API_BASE_URL=http://localhost:3000/api VITE_SOCKET_URL=http://localhost:3000 VITE_NODE_ENV=development
Replace the URLs with your actual backend API and Socket.io server URLs.
-
Start the development server
npm run dev
The application will be available at
http://localhost:5173(default Vite port). -
Build for production
npm run build
The production build will be in the
distdirectory. -
Preview production build
npm run preview
npm run dev: Start development server with hot module replacementnpm run build: Build the application for productionnpm run preview: Preview the production build locallynpm run lint: Run ESLint to check code quality
- The app uses Vite's fast HMR (Hot Module Replacement) for instant updates
- Use React DevTools browser extension for debugging
- Check browser console for any errors or warnings
- Ensure your backend API is running and accessible
Port already in use:
# Kill process on port 5173 (or change port in vite.config.ts)
npm run dev -- --port 3000Dependencies issues:
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm installBuild errors:
- Ensure all TypeScript errors are resolved
- Check that all environment variables are set
- Verify that the backend API is accessible
Built with ❤️ using React, TypeScript, and modern web technologies






















