Customizable B2B ecommerce built with Medusa 2.0 & Next.js Storefront
b2b-video.mp4
- ✅ Node 20
- ✅ Postgres 15
- ✅ Medusa 2.0
- ✅ Next.js 15
- 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
# Clone the repository
git clone https://github.com/medusajs/b2b-starter-medusa.git
## Setup Backend
# Go to the folder
cd ./backend
# Clone .env.template
cp .env.template .env
# Install dependencies
yarn install
# Install dependencies, setup database & seed data
yarn install && yarn medusa db:create && yarn medusa db:migrate && yarn run seed && yarn medusa user -e [email protected] -p supersecret -i admin
# Start Medusa project - backend & admin
yarn dev
## Setup Storefront
# Go to folder
cd ../storefront
# Clone .env.template
cp .env.template .env
# Install dependencies
yarn install
- ✅ Visit Admin: Publishable Key
- Credentials:
- email:
[email protected]
- password:
supersecret
- email:
- Credentials:
- ✅ Copy token key of "Webshop"
- ✅ Open file -
storefront/.env
- ✅ Add token to this var -
NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY
# Start Medusa storefront
yarn dev
Visit the following links to see the Medusa storefront & admin