Skip to content

A feature-rich B2B e-commerce platform built with Medusa 2.0 and Next.js. Extended with newly implemented document management module, user verification system, and corresponding database migrations. Features multi-language document support for products and admin-based user approval workflow.

License

Notifications You must be signed in to change notification settings

Seveneqqq/medusa-js

Repository files navigation

New Features:

  1. Documents Module

    • Adding and removing files for selected products with categorization by languages and document types
    • Dialog for browsing all saved files, enabling quick assignment of complete document sets to other products
    • Local file storage in the /backend/uploads folder
    • PostgreSQL database storage
  2. User Approval Module

    • Registered users must be approved by an administrator
    • Administrator can easily and quickly review and approve multiple users simultaneously
  3. Database Migrations

    • Addition of PRODUCT_ATTACHMENT and ATTACHMENT tables
    • Addition of CUSTOMER_APPROVED table
    • Creation of migration files

B2B Commerce Starter

Medusa B2B Commerce Starter

Customizable B2B ecommerce monorepo built with Medusa 2.0 & Next.js Storefront

PRs welcome! Discord Chat Follow @medusajs

b2b-video.mp4


Table

 

Prerequisites

⚠️ We use turborepo to manage this monorepo and have tested this only with the below versions:

  • ✅ yarn version 3.5
  • ✅ node 20
  • ✅ Postgres 15
  • ✅ Medusa 2.0

 

Overview

Features

  • Company Management. Customers can manage their company and invite employees.
  • Spending Limits. Company admins can assign spending limits to its employees
  • Bulk add-to-cart. Customers can add multiple variants of a product to their cart at once.
  • Quote Management. Customers & Merchants can communicate, accept or reject quotes
  • Order Edit. Merchants can edit orders or quotes - add/remove item, update quantity & price management and more.
  • Full ecommerce support
    • Product Pages
    • Product Collections & Categories
    • Cart & Checkout
    • User Accounts
    • Order Details
  • Full Next.js 14 support
    • App Router
    • Next fetching/caching
    • Server components/actions
    • Streaming
    • Static Pre-Rendering

 

Demo

Quote Management

image  

Company Management

image  

Cart Summary

image  

Product Page

image  

 

Quickstart

Setup storefront & API

# Clone the repository
git clone [email protected]:medusajs/b2b-starter-medusa.git

# Go to the folder
cd ./b2b-starter-medusa

# Install dependencies & setup medusa storefront & backend
yarn install && yarn setup

# Start Servers - storefront & backend
yarn dev

Setup publishable key

  • ✅ Visit Admin: Publishable Key
  • ✅ Copy token key of "Webshop"
  • ✅ Open file - apps/storefront/.env
  • ✅ Add token to this var - NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY

Visit the following links to see the Medusa storefront & admin

 

Resources

Learn more about Medusa

Learn more about Next.js

 

Contributors

About

A feature-rich B2B e-commerce platform built with Medusa 2.0 and Next.js. Extended with newly implemented document management module, user verification system, and corresponding database migrations. Features multi-language document support for products and admin-based user approval workflow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages