Skip to content

aniruddhaadak80/MercatoLive

Repository files navigation

🌐 MercatoLive - The Future of E-Commerce 🌐

MercatoLive is your gateway to a dynamic and engaging shopping experience. Designed with precision and powered by real-time technology, MercatoLive offers users an ultra-responsive, animation-rich e-commerce platform where product availability updates live, and transactions are seamless.


🚀 Core Features

  • 🔄 Real-Time Inventory: Always know what's in stock, with real-time inventory indicators and low-stock notifications.
  • ✨ Immersive Animations: Framer Motion effects for smooth transitions, hover interactions, and engaging UI animations.
  • 🔒 Secure Authentication: Powered by NextAuth.js with JWT and OAuth for quick and safe access.
  • 💳 Effortless Checkout: Integrated Stripe payments for secure, lightning-fast transactions.
  • 📊 Admin Dashboard: Real-time insights on sales, inventory, and customer behavior.
  • 📱 Mobile-First Design: Fully responsive and visually consistent across devices.

🛠️ Tech Stack

  • Frontend: Next.js (App Router) with Tailwind CSS and Framer Motion for animations.
  • Backend: Next.js API routes for backend processes.
  • Database: PostgreSQL or MongoDB for reliable data handling.
  • Authentication: NextAuth.js for robust, secure user login.
  • Payment: Stripe API for global payment processing.
  • Real-Time Data: WebSockets or Pusher for live updates and notifications.
  • File Storage: Cloudinary or Amazon S3 for optimized image management.

📜 Pages and Key Components

  1. 🏠 Home Page: Explore trending products with animated carousels and a seamless filtering experience.
  2. 📦 Product Page: High-quality images, detailed descriptions, and live stock availability for each product.
  3. 🛒 Cart & Checkout: Real-time cart updates, animated interactions, and a streamlined multi-step checkout.
  4. 📈 Admin Dashboard: Manage inventory, track sales, and receive low-stock alerts in real time.
  5. 👤 User Profile: Order history, saved addresses, and secure payment methods for quick reordering.

🛠️ Setup Instructions

Requirements

  • Node.js and npm or yarn.
  • Accounts for Stripe, MongoDB/PostgreSQL, Cloudinary or Amazon S3.

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/MercatoLive.git
    cd MercatoLive
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Set up environment variables: Create a .env.local file with the necessary API keys and configurations:

    DATABASE_URL=<Your database URL>
    NEXTAUTH_SECRET=<Your NextAuth secret>
    STRIPE_SECRET_KEY=<Your Stripe secret key>
    CLOUDINARY_URL=<Your Cloudinary URL>
    PUSHER_APP_ID=<Your Pusher app ID>
    PUSHER_KEY=<Your Pusher key>
    PUSHER_SECRET=<Your Pusher secret>
    
  4. Run the development server:

    npm run dev
    # or
    yarn dev
  5. Build for production:

    npm run build
    # or
    yarn build
  6. Deploy: Easily deploy to Vercel for optimized Next.js hosting.


💡 Usage Guide

  • Home: Browse and discover products across categories.
  • Product Page: View product details and live stock counts.
  • Cart & Checkout: Update quantities, review the total, and place orders.
  • Admin Dashboard: Track inventory, manage orders, and get analytics.
  • User Profile: Check order status, manage payment methods, and more.

🌟 Contribution Guide

  1. Fork the Project.
  2. Create Your Feature Branch: git checkout -b feature/AmazingFeature.
  3. Commit Your Changes: git commit -m 'Add AmazingFeature'.
  4. Push to the Branch: git push origin feature/AmazingFeature.
  5. Open a Pull Request.

📄 License

This project is licensed under the MIT License.


📬 Contact

Reach out for questions or contributions: [email protected]


🔮 Future Roadmap

  • Wishlist: Enable users to save items for future purchases.
  • Personalized Recommendations: Display products based on user activity.
  • Advanced Analytics: In-depth insights into user preferences and sales trends.

🚀 Start shopping, managing, and exploring with MercatoLive – where every interaction is seamless, secure, and engaging.