{"id":30217102,"url":"https://github.com/muhammadranju/nextbuy-fullstack-project","last_synced_at":"2026-04-09T02:02:25.904Z","repository":{"id":306880820,"uuid":"1026810655","full_name":"muhammadranju/nextbuy-fullstack-project","owner":"muhammadranju","description":"NextBuy is an innovative e-commerce platform built to revolutionize online shopping. With AI-powered features like personalized product recommendations, an intelligent chatbot, image-based product search, and demand forecasting, NextBuy offers a seamless and futuristic shopping experience for users and robust management tools for admins.","archived":false,"fork":false,"pushed_at":"2025-08-09T18:22:35.000Z","size":9795,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T18:23:31.587Z","etag":null,"topics":["api","authentication","authorization","ecommerce-application","ecommerce-website","expressjs","mongodb","nextjs","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muhammadranju.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-26T16:57:03.000Z","updated_at":"2025-08-09T18:22:37.000Z","dependencies_parsed_at":"2025-07-28T08:38:21.623Z","dependency_job_id":null,"html_url":"https://github.com/muhammadranju/nextbuy-fullstack-project","commit_stats":null,"previous_names":["muhammadranju/nextbuy-fullstack-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muhammadranju/nextbuy-fullstack-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fnextbuy-fullstack-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fnextbuy-fullstack-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fnextbuy-fullstack-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fnextbuy-fullstack-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammadranju","download_url":"https://codeload.github.com/muhammadranju/nextbuy-fullstack-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fnextbuy-fullstack-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","authentication","authorization","ecommerce-application","ecommerce-website","expressjs","mongodb","nextjs","nodejs"],"created_at":"2025-08-14T04:38:50.198Z","updated_at":"2026-04-09T02:02:25.879Z","avatar_url":"https://github.com/muhammadranju.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NextBuy - AI-Driven E-commerce Platform\n\n_A full-stack e-commerce platform powered by AI for an enhanced shopping experience._\n\n---\n\n## Overview\n\n**NextBuy** is an innovative e-commerce platform built to revolutionize online shopping. With AI-powered features like personalized product recommendations, an intelligent chatbot, image-based product search, and demand forecasting, NextBuy offers a seamless and futuristic shopping experience for users and robust management tools for admins.\n\n- **Website Name**: NextBuy\n- **Website URL**: [NextBuy - E-commerce Platform](https://next-buy-five.vercel.app) _(Update with live URL after deployment)_\n- **Repository**: You're here!\n\n---\n\n## Features\n\n### User-Facing Features\n\n- **Home Page**: Discover featured products and AI-driven recommendations.\n- **Product Listings**: Browse products with filters and search functionality.\n- **Product Details**: View detailed product info, reviews, and ratings.\n- **AI Image Search**: Upload an image to find matching products.\n- **Shopping Cart**: Add, remove, and manage items before checkout.\n- **Checkout**: Secure payment processing with Stripe or SSL Commerz.\n- **Order Confirmation**: Receive instant order success feedback.\n- **User Profile**: Manage account details, view order history, and update settings.\n- **AI Chatbot**: Get real-time shopping assistance powered by OpenAI.\n\n### Admin Dashboard\n\n- **Dashboard Overview**: Monitor sales, users, and trending products.\n- **Product Management**: Add, update, or delete products.\n- **Order Management**: Track and update order statuses.\n- **User Management**: View and manage registered users.\n- **AI Analytics**: Access demand forecasting and trends with AI insights.\n- **Chatbot Logs**: Review AI chatbot interactions.\n\n---\n\n## Tech Stack\n\n| **Component**      | **Technology**            |\n| ------------------ | ------------------------- |\n| Frontend \u0026 Backend | Next.js                   |\n| Styling            | Tailwind CSS, ShadCN      |\n| Database           | MongoDB (Mongoose)        |\n| AI Integration     | OpenAI API, TensorFlow.js |\n| Payments           | Stripe or SSL Commerz     |\n\n---\n\n## Project Structure\n\n```\nai-ecommerce/\n├── public/              # Static assets (images, icons)\n├── src/\n│   ├── app/             # Next.js App Router\n│   ├── components/      # Reusable UI components\n│   │   ├── layout/      # Header, Footer, Sidebar\n│   │   ├── ui/          # Buttons, Inputs (ShadCN)\n│   ├── features/        # Redux slices (cart, product, user)\n│   ├── hooks/           # Custom React hooks\n│   ├── lib/             # Utilities (API, auth, MongoDB)\n│   ├── models/          # Mongoose schemas (product, order, user)\n│   ├── pages/           # Next.js page routes\n│   │   ├── admin/       # Admin dashboard pages\n│   │   ├── auth/        # Login, Register pages\n│   ├── pages/api/       # Backend API routes\n│   ├── providers/       # Redux store, Theme provider\n│   ├── styles/          # Tailwind \u0026 global styles\n│   ├── utils/           # Helper functions\n│   ├── middleware.ts    # Authentication middleware\n├── config/              # Project configurations\n├── tailwind.config.js   # Tailwind CSS config\n├── next.config.js       # Next.js config\n├── package.json         # Dependencies \u0026 scripts\n├── tsconfig.json        # TypeScript config\n```\n\n---\n\n## API Endpoints\n\n### User API Routes\n\n| **Method** | **Endpoint**           | **Description**             |\n| ---------- | ---------------------- | --------------------------- |\n| GET        | `/api/products`        | Fetch all products          |\n| GET        | `/api/products/:id`    | Fetch product details       |\n| POST       | `/api/cart`            | Add product to cart         |\n| DELETE     | `/api/cart/:id`        | Remove item from cart       |\n| POST       | `/api/checkout`        | Process payment (Stripe)    |\n| POST       | `/api/image-search`    | AI-powered image matching   |\n| POST       | `/api/chat`            | AI chatbot interaction      |\n| POST       | `/api/recommendations` | Generate AI recommendations |\n| GET        | `/api/orders`          | Retrieve order history      |\n| POST       | `/api/orders`          | Save new order details      |\n\n### Admin API Routes\n\n| **Method** | **Endpoint**              | **Description**             |\n| ---------- | ------------------------- | --------------------------- |\n| GET        | `/api/admin/products`     | Fetch all products          |\n| POST       | `/api/admin/products`     | Add a new product           |\n| PUT        | `/api/admin/products/:id` | Update product details      |\n| DELETE     | `/api/admin/products/:id` | Remove a product            |\n| GET        | `/api/admin/orders`       | Fetch all orders            |\n| PUT        | `/api/admin/orders/:id`   | Update order status         |\n| GET        | `/api/admin/users`        | Fetch all users             |\n| DELETE     | `/api/admin/users/:id`    | Remove a user               |\n| GET        | `/api/admin/analytics`    | Fetch AI demand forecasting |\n| GET        | `/api/admin/chat-logs`    | Fetch chatbot logs          |\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v16 or higher)\n- MongoDB (local or MongoDB Atlas)\n- API keys for OpenAI, Stripe (or SSL Commerz), and TensorFlow.js\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/arifhassansky/nextBuy.git\n   cd nextBuy\n   ```\n2. Install dependencies:\n   ```bash\n   pnpm install\n   ```\n3. Set up environment variables (create `.env.local`):\n\n   ```\n    # FORNTEND ENV\n    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=*******************\n    NEXT_PUBLIC_API_URL=http://localhost:3000\n    NEXT_PUBLIC_IMAGEBB_API=******************************\n    NEXT_PUBLIC_MONGODB_URI=******************************\n\n    # BACKEND ENV\n    DB_USER=******************************\n    DB_PASSWORD=******************************\n    NEXTAUTH_URL=http://localhost:3000/\n    JWT_SECRET=******************************\n    NEXTAUTH_SECRET=******************************\n    GOOGLE_CLIENT_SECRET=******************************\n    GOOGLE_CLIENT_ID=******************************\n    GEMINI_API_KEY=******************************\n    GITHUB_ID=******************************\n    GITHUB_SECRET=******************************\n    STRIPE_SECRET_KEY=******************************\n   ```\n\n4. Run the development server:\n   ```bash\n   pnpm run dev\n   ```\n5. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n---\n\n## Implementation Plan\n\n1. **Project Setup**: Initialize Next.js, install dependencies, configure Tailwind CSS.\n2. **Backend Setup**: Connect MongoDB, define Mongoose models, create API routes.\n3. **Frontend Development**: Build UI with ShadCN, integrate NextAuth.js, develop AI features.\n4. **Payments \u0026 Deployment**: Add Stripe for payments, deploy to Vercel with MongoDB Atlas.\n\n---\n\n## Team\n\n### Work Distribution\n\n- **Frontend**: Himel Mia, Salenkin Imran, Ayesha Ferdous\n- **Backend**: Md Ranju, Md. Arif Hassan\n\n---\n\n## Deployment\n\n- **Platform**: Vercel (Frontend \u0026 Backend)\n- **Database**: MongoDB Atlas\n- **Live URL**: _(Add after deployment)_\n\n---\n\n## Contributing\n\nWe welcome contributions! Please follow these steps:\n\n1. Fork the repository.\n2. Create a feature branch (`git checkout -b feature-name`).\n3. Commit your changes (`git commit -m \"Add feature\"`).\n4. Push to the branch (`git push origin feature-name`).\n5. Open a Pull Request.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n_Built with ❤️ by the NextBuy Team | Last Updated: April 09, 2025_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadranju%2Fnextbuy-fullstack-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadranju%2Fnextbuy-fullstack-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadranju%2Fnextbuy-fullstack-project/lists"}