MDF05/Frontend-WaysBeans
Modern and responsive e-commerce web interface built with React, Vite, and Chakra UI for an optimal user experience.
WaysBean Frontend Client
Modern Coffee E-commerce Interface
The WaysBean Frontend is a polished, responsive web application built to provide an exceptional user experience for coffee lovers. It connects seamlessly with the WaysBean Backend API.
Frontend Overview
- Platform: Web (Single Page Application)
- Framework: React.js (Vite)
- Styling: Chakra UI & TailwindCSS
- State: Redux Toolkit
Features
- โจ Modern UI: Clean, responsive design using Chakra UI.
- ๐ฑ Mobile First: Optimized for all device sizes.
- ๐ Fast Performance: Powered by Vite and optimized assets.
- ๐ Dynamic Cart: Real-time state management for shopping cart.
- ๐จ Animations: Smooth transitions with Framer Motion.
- ๐ Live Updates: Real-time order status via Socket.io.
Tech Stack
- Core: React, TypeScript, Vite
- UI Context: Chakra UI, TailwindCSS, Framer Motion
- State Management: Redux Toolkit
- Data Fetching: Axios
- Forms: React Hook Form + Zod
Installation
-
Navigate to the frontend directory
cd Frontend-WaysBeans -
Install Dependencies
npm install
-
Environment Setup
Create a.envfile and configure the backend URL.
See ENVIRONMENT.md.VITE_API_BASE_URL="http://localhost:5000/api/v1"
Development Workflow
Start the development server with HMR (Hot Module Replacement):
npm run devOpen http://localhost:5173 to view it in the browser.
Build & Deployment
To create a production build:
npm run buildSee DEPLOYMENT.md for detailed hosting instructions (Vercel, Netlify, etc.).
๐ Documentation
The frontend documentation is organized as follows:
Technical Docs
- System Architecture: Component hierarchy and state flow.
- Style Guide: Component patterns and styling rules.
- Environment Setup: Configuration reference.
Operational Docs
- Deployment Guide: Build and deploy instructions.
- Testing Strategy: Testing tools and plans.
Community & Legal
- Contributing: Guidelines for UI contributions.
- Code of Conduct: Community standards.
- Changelog: Version history.
- Roadmap: Future features.
- Support: Where to get help.
- Disclaimer: Usage terms.
- License: MIT License.
Contribution Guide
- Fork the repo.
- Create a feature branch (
feat/new-ui-component). - Commit changes.
- Push to branch.
- Open a Pull Request.
Please Lint your code before committing:
npm run lintAuthor
- WaysBean Team
- Contact:
frontend@waysbean.com
Built with React & Passion โ๏ธ