This project is a modern dynamic e-commerce frontend application built using Next.js, Tailwind CSS, and Context API for global state management. It provides a seamless user experience with optimized performance, responsive design, and secure payment processing.
Next.js - React framework for the frontend.
Tailwind CSS - Utility-first CSS framework for styling.
Razorpay - Payment gateway integration for secure transactions.
REST API - Communicates with the backend for fetching and managing data.
Context API - Handles global state management efficiently.
User Authentication - Secure login and signup functionality.
Product Catalog - Displays products with filters.
Shopping Cart - Allows users to add, remove, and manage items.
Secure Payments - Integrates Razorpay for seamless checkout.
Order Management - Users can view past orders.
Mobile Responsiveness - Fully optimized for different screen sizes.
git clone https://github.com/babluroy/node.js-eCommerce-Backend.git
cd node.js-eCommerce-Backend
Ensure the backend is running successfully.
In the frontend project, create a .env.local
file and add the following environment variables:
NEXT_PUBLIC_API_URL=<YOUR_BACKEND_URL>
NEXT_PUBLIC_RAZORPAY_TEST_KEY=<YOUR_RAZORPAY_TEST_KEY>
Replace <YOUR_BACKEND_URL>
and <YOUR_RAZORPAY_TEST_KEY>
with the actual values.
npm install
npm run dev
The application should now be running successfully.