A high-performance Next.js e-commerce platform with Redux Toolkit for state management, dynamic product filtering, pagination, and integrated Stripe payments. This project is built with Server-Side Rendering (SSR) and Static Site Generation (SSG) for optimized SEO and fast performance. It uses TailwindCSS for styling and includes dynamic charts for data visualization.
If you like it please give a star ⭐
Back-end github: Gadget Galaxy Backend
- Next.js: Utilized for server-side rendering (SSR) to fetch products, improving SEO and performance.
- TailwindCSS: For a fully responsive and modern UI/UX.
- Redux Toolkit: For efficient state management across the application.
- RTK Query: Simplifies data fetching and caching for API calls.
- Prisma: ORM for handling database operations with MongoDB.
- Express.js: Backend API development.
- Stripe: Integrated for secure payment processing.
- Authentication: User authentication and authorization system.
- Product Management: Sorting, filtering, and search functionalities to help users find the desired products easily.
- Fast, secure, and scalable architecture.
- Admin Dashboard
- Admin can see overall activity througout charts😊
- Admin can add/edit/update/delete products to database
- Admin can see Sales history
- Admin can manage product for featured product
- Admin can manage product for "Hot Offer"
- Admin can track transactions/latest order
- Admin can see most valuable customer
- User Dashboard
- Users can track their order
- Users can edit their profile
- Users can upload new profile picture
- Users can change password
- Users can recover their forgotten password😊
- Frontend: Next.js, React, TailwindCSS
- State Management: Redux Toolkit
- Backend: Node.js, Express (Optional)
- Database: MongoDB (with Mongoose/Prisma for querying)
- Payments: Stripe
- Charts: Chart.js
- Clone the Repository:
git clone https://github.com/NiharMondal/nextjs-ecommerce
- Navigate to the project directory:
cd nextjs-ecommerce
- Install Dependencies
npm install
- Set Up Environment Variables
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME="your cloud name"
NEXT_PUBLIC_BACKEND_URL = "http://localhost:5000/api/v1"
NEXT_PUBLIC_BACKEND_URL_PRODUCTION = "your backend deployed live link"
NEXT_PUBLIC_STRIPE_PUBLISHED_KEY="your stripe published key"
- Run the Application To start the development server, run:
npm run dev
The application will be available at http://localhost:3000.
- Browse products, filter by category, brand, etc.
- Add items to the cart and proceed to checkout using Stripe.
- Admin view includes charts to visualize sales, most popular products, etc.
- Home page: https://gadget-galaxy-smoky.vercel.app/
- Products page: /product
- Single product page: /product/1
- Offered product page: /offer/1
- Cart page: /cart
- Login page: /sign-in
- Register page: /sign-up
- 404 page
- Product Display with SSR Products are fetched using server-side rendering for better SEO and faster load times.
- Sorting, Filtering, and Search Users can sort products by price, popularity, etc. Filter products based on categories, features, and other attributes. Search for products using a custom search bar.
- Redux Toolkit & RTK Query Efficient state management with Redux Toolkit. RTK Query for handling API calls and caching the results.
- User Authentication Sign up, log in, and access protected routes using JSON Web Tokens (JWT).
- Stripe Integration Seamless payment experience with Stripe integration.
- Add more payment gateways.
- Implement real-time notifications for order updates.
- Improve user dashboard with tracking history.
Contributions are welcome! If you'd like to contribute to this project, feel free to submit a pull request or open an issue.