š Fresh Grocery Store
A modern grocery e-commerce website built with React, TypeScript, Vite, and Tailwind CSS.
⨠Features
Customer Features
- Browse products by category
- Search products by name
- Product details page
- Shopping cart management
- Address management
- Checkout flow
- Order history
- Responsive design for mobile, tablet, and desktop
UI Features
- Modern grocery-themed design
- Product filtering
- Flash Deals section
- Featured products
- Category navigation
- Loading states
- Smooth animations
š ļø Tech Stack
Frontend
- React
- TypeScript
- Vite
- React Router
- Tailwind CSS
- Lucide React Icons
State Management
- React Context APIs
- React Hooks
š Project Structure
š Project Structure
project-root/
ā
āāā client/ # Frontend React Application
ā āāā public/
ā āāā src/
ā ā āāā assets/
ā ā āāā components/
ā ā āāā context/
ā ā āāā pages/
ā ā āāā types/
ā ā āāā hooks/
ā ā āāā utils/
ā ā āāā App.tsx
ā ā āāā main.tsx
ā āāā package.json
ā āāā vite.config.ts
ā
āāā server/ # Backend API
ā āāā config/
ā āāā controllers/
ā āāā middleware/
ā āāā models/
ā āāā routes/
ā āāā uploads/
ā āāā server.js
ā āāā package.json
ā
āāā README.md
āāā .gitignore
š Installation
Clone the repository:
git clone <your-repository-url>
Navigate to the project:
cd fresh-grocery
Install dependencies:
npm install
Start development server:
npm run dev
Build for production:
npm run build
Preview production build:
npm run preview
šø Screenshots
Home Page
- Hero Banner
- Categories
- Flash Deals
- Featured Products
Product Page
- Product Information
- Add To Cart
- Related Products
Cart
- Quantity Management
- Price Calculation
- Checkout Navigation
Address Management
- Add Address
- Edit Address
- Default Address Selection
šÆ Learning Objectives
This project demonstrates:
- React Fundamentals
- TypeScript Integration
- Component Architecture
- Context API
- React Router
- State Management
- Responsive Design
- E-commerce UI Development
š Future Improvements
- Backend API Integration
- User Authentication
- Payment Gateway
- Product Reviews
- Wishlist
- Order Tracking
- Admin Dashboard
- Real-time Notifications
š License
This project is for learning and educational purposes.
šØāš» Author
Created by Kha Don
GitHub: https://github.com/your-username