A modern, responsive e-commerce application built with Next.js 15, React 19, TypeScript, and Tailwind CSS. This project features a clean, user-friendly interface for browsing and purchasing products online.
- Modern Tech Stack: Built with Next.js 15, React 19, and TypeScript
- Responsive Design: Fully responsive layout that works on all devices
- Product Catalog: Browse products with filtering and categorization
- Shopping Cart: Add, remove, and manage items in your cart
- User Authentication: Login system with user accounts
- UI Components: Utilizes UI5 Web Components for a professional look
- State Management: Context API for global state management
- API Integration: Integrated with Fake Store API for product data
- Custom Hooks: Reusable hooks for products, cart, filters, and alerts
- Alert System: User-friendly notifications and alerts
- Framework: Next.js 15.4.3 with App Router
- Frontend: React 19.1.0, TypeScript 5
- Styling: Tailwind CSS 4
- UI Library: UI5 Web Components React
- Package Manager: pnpm
- Development: ESLint, PostCSS
- API: Fake Store API
e-commerce_nextjs/
├── app/
│ ├── accounts/ # Account management pages
│ ├── cart/ # Shopping cart functionality
│ ├── context/ # React Context providers
│ ├── hooks/ # Custom React hooks
│ ├── login/ # Authentication pages
│ ├── shop/ # Product catalog pages
│ ├── ui/ # UI components and pages
│ │ ├── common/ # Shared UI components
│ │ ├── components/ # Reusable components
│ │ └── pages/ # Page components
│ ├── utils/ # Utility functions and types
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout component
│ └── page.tsx # Home page
├── public/ # Static assets
├── .env # Environment variables
├── package.json # Dependencies and scripts
└── README.md # Project documentation
- Node.js 18.0 or later
- pnpm (preferred) or npm/yarn
-
Clone the repository
git clone <repository-url> cd e-commerce_nextjs
-
Install dependencies
pnpm install # or npm install -
Set up environment variables
# The .env file is already configured with: NEXT_PUBLIC_API=https://fakestoreapi.com -
Run the development server
pnpm dev # or npm run dev -
Open your browser
Navigate to http://localhost:3000 to see the application.
pnpm dev- Start development server with Turbopackpnpm build- Build the application for productionpnpm start- Start the production serverpnpm lint- Run ESLint for code linting
The application uses React Context API with custom hooks for:
- Products: Fetching and managing product data
- Cart: Shopping cart state and operations
- User: Authentication and user management
- Filters: Product filtering and search
- Alerts: User notifications
- Integrated with Fake Store API for product data
- Custom hooks handle API calls and error management
- Proper loading states and error handling
- Mobile-first approach with Tailwind CSS
- Responsive navigation and layout
- Optimized for various screen sizes
- Clean, modern interface
- Smooth transitions and hover effects
- Loading skeletons for better UX
- Alert system for user feedback
/- Home page with featured products/shop- Product catalog with filtering/cart- Shopping cart management/login- User authentication/accounts- User account management
The application uses UI5 Web Components which provide:
- Professional, enterprise-grade components
- Consistent design language
- Accessibility features
- Cross-browser compatibility
The application is fully responsive and optimized for:
- Desktop (1200px+)
- Tablet (768px - 1199px)
- Mobile (320px - 767px)
- Connect your repository to Vercel
- Deploy automatically with each push to main branch
- Build the application:
pnpm build - Deploy the
.nextfolder to your hosting provider
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature - Commit your changes:
git commit -m 'Add new feature' - Push to the branch:
git push origin feature/new-feature - Submit a pull request
This project is private and intended for development purposes.
- None at the moment
For questions or support, please contact the development team.
Built with ❤️ using Next.js and React