This is the main user-facing website for the e-commerce platform, built using Next.js and TypeScript. It provides a seamless shopping experience for customers, including features such as product browsing, search, filtering, and a secure checkout process. This site is connected to the admin panel, ensuring that any updates made by administrators reflect in real-time for users.
- Product Browsing: View a wide range of products with images, descriptions, and prices.
- Search and Filtering: Easily find products using search and filter options (by category, price, size, or color).
- Product Details: View detailed product pages with high-quality images and complete descriptions.
- Cart and Checkout: Add products to the cart and complete purchases securely using Stripe.
- Real-Time Updates: Changes made in the admin panel (e.g., product updates, price changes) reflect instantly on the user website.
- Responsive Design: Optimized for all devices, including mobile, tablet, and desktop.
- Framework: Next.js
- Language: TypeScript
- Styling: CSS/SCSS or a CSS-in-JS solution like Tailwind CSS (optional)
- State Management: Context API, Redux, or any state management library (if used)
- Database: PostgreSQL
- API: RESTful APIs for backend integration with the admin panel
- Payment: Stripe for handling payments
- Node.js (v16 or higher)
- npm package manager
-
Clone the repository:
git clone https://github.com/smit455/big_bazaar-store.git cd big_bazaar-store -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add the necessary environment variables. Example:API_BASE_URL="your-admin-url/api/[storeId]"
-
Start the development server:
npm run dev
The app will be available at
http://localhost:3001.
npm run dev: Start the development servernpm run build: Build the application for productionnpm start: Start the production servernpm run lint: Run linting
Users can explore all available products on the homepage, with pagination for large inventories.
Users can search for products by name or filter them by:
- Categories
- Sizes and colors
Each product has a dedicated page displaying:
- High-resolution images
- Description
- Price
- Available sizes and colors
- Add-to-cart functionality
Users can:
- Add products to their cart
- Remove products from the cart
- Proceed to checkout, where payments are securely processed using Stripe
Any changes made in the admin panel, such as new products or price updates, are reflected instantly on the user-facing website.
For admin-related tasks such as managing products, categories, and order details, visit the Admin Panel