{"id":15553525,"url":"https://github.com/medusajs/b2b-starter-medusa","last_synced_at":"2025-05-16T08:04:36.922Z","repository":{"id":257556560,"uuid":"858635712","full_name":"medusajs/b2b-starter-medusa","owner":"medusajs","description":"Official Medusa B2B Starter template. Features common B2B ecommerce requirements and can be easily adapted and extended.","archived":false,"fork":false,"pushed_at":"2025-04-28T09:26:08.000Z","size":28720,"stargazers_count":237,"open_issues_count":10,"forks_count":113,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-04-28T10:39:37.717Z","etag":null,"topics":["b2b","b2b-ecommerce","ecommerce","medusa","medusajs","nextjs","nextjs-starter","nextjs-template","open-source","opensource","oss","starter","starter-kit","starter-template","template"],"latest_commit_sha":null,"homepage":"https://dub.sh/medusa-b2b-starter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/medusajs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":["medusajs"]}},"created_at":"2024-09-17T09:06:02.000Z","updated_at":"2025-04-28T09:35:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c37cade1-0fac-4bee-a970-c3565b96938b","html_url":"https://github.com/medusajs/b2b-starter-medusa","commit_stats":null,"previous_names":["medusajs/b2b-starter-medusa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medusajs%2Fb2b-starter-medusa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medusajs%2Fb2b-starter-medusa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medusajs%2Fb2b-starter-medusa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medusajs%2Fb2b-starter-medusa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medusajs","download_url":"https://codeload.github.com/medusajs/b2b-starter-medusa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["b2b","b2b-ecommerce","ecommerce","medusa","medusajs","nextjs","nextjs-starter","nextjs-template","open-source","opensource","oss","starter","starter-kit","starter-template","template"],"created_at":"2024-10-02T14:36:54.470Z","updated_at":"2025-05-16T08:04:31.913Z","avatar_url":"https://github.com/medusajs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/medusajs"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"http://www.amitmerchant.com/electron-markdownify\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/38ba3a7b-e07b-4117-8187-7b171eae3769\" alt=\"B2B Commerce Starter\" width=\"80\" height=\"80\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  Medusa B2B Commerce Starter\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eCustomizable B2B ecommerce built with \u003ca href=\"https://medusajs.com/\" target=\"_blank\"\u003eMedusa 2.0\u003c/a\u003e \u0026 Next.js Storefront\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\" alt=\"PRs welcome!\" /\u003e\n  \u003c/a\u003e\n    \n  \u003ca href=\"https://discord.gg/xpCwq3Kfn8\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/chat-on%20discord-7289DA.svg\" alt=\"Discord Chat\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=medusajs\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs\" alt=\"Follow @medusajs\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cvideo src=\"https://github.com/user-attachments/assets/833b26a5-4b52-447f-ac30-6ae02cbe8f05\" controls=\"controls\" muted=\"muted\" playsinline=\"playsinline\"\u003e\n\u003c/video\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n## Table\n\n- [Prerequisites](#prerequisites)\n- [Overview](#overview)\n  - [Features](#features)\n  - [Demo](#demo)\n- [Quickstart](#quickstart)\n- [Update](#update)\n- [Resources](#resources)\n- [Contributors](#contributors)\n\n\u0026nbsp;\n\n## Prerequisites\n\n⚠️ We have tested this repo with the below versions:\n\n- ✅ Node 20\n- ✅ Postgres 15\n- ✅ Medusa 2.4\n- ✅ Next.js 15\n\n\u0026nbsp;\n\n## Overview\nFor a full feature overview, please visit [the project wiki](https://github.com/medusajs/b2b-starter-medusa/wiki).\n\n#### Core features\n\n- **Company Management**. Customers can manage their company and invite employees.\n- **Spending Limits**. Company admins can assign spending limits to its employees.\n- **Bulk add-to-cart**. Customers can add multiple variants of a product to their cart at once.\n- **Quote Management**. Customers \u0026 Merchants can communicate, accept or reject quotes.\n- **Order Edit**. Merchants can edit orders or quotes - add/remove item, update quantity \u0026 price management and more.\n- **Company Approvals**. Companies can mandate approvals from company admins before employees can finalize a cart.\n- **Merchant Approvals**. Merchants can set up approval processes for orders, ensuring compliance with business rules before fulfillment.\n- **Promotions**. Customers can apply manual and automatic promotions to their cart.\n- **Free Shipping Nudge**. Displays a component showing progress toward free shipping.\n- **Full ecommerce support**\n  - Product Pages\n  - Product Collections \u0026 Categories\n  - Cart \u0026 Checkout\n  - User Accounts\n  - Order Details\n- **Full Next.js 15 support**\n  - App Router\n  - Caching\n  - Server components/actions\n  - Streaming\n  - Static Pre-Rendering\n\n\u0026nbsp;\n\n#### Demo\n\n#### Quote Management\n\n\u003cimg align=\"right\" src=\"https://github.com/user-attachments/assets/110c99e8-18ba-49e5-8955-84a058b597c7\" alt=\"image\" style=: /\u003e\n\u0026nbsp;\n\n#### Company Management\n\n\u003cimg align=\"right\" src=\"https://github.com/user-attachments/assets/361702ce-d491-4509-a930-4361ab3b4126\" alt=\"image\" style=: /\u003e\n\u0026nbsp;\n\n#### Approval Management\n\n\u003cimg align=\"right\" src=\"https://github.com/user-attachments/assets/b93b7b94-41a9-4c5f-bd6b-abf87492ed46\" alt=\"image\" style=: /\u003e\n\u0026nbsp;\n\n#### Product Page\n\n\u003cimg align=\"right\" src=\"https://github.com/user-attachments/assets/2cd8a3ff-5999-49af-890a-4bac7b6f2f15\" alt=\"image\" style=: /\u003e\n\u0026nbsp;\n\n#### Cart Summary\n\n\u003cimg align=\"right\" src=\"https://github.com/user-attachments/assets/095f5565-992e-4c74-acdc-a44bd905e59b\" alt=\"image\" style=: /\u003e\n\u0026nbsp;\n\n\u0026nbsp;\n\n## Quickstart\n\n#### Setup Medusa project\n\n```bash\n# Clone the repository\ngit clone https://github.com/medusajs/b2b-starter-medusa.git\n\n## Setup Backend\n\n# Go to the folder\ncd ./backend\n\n# Clone .env.template\ncp .env.template .env\n\n# Install dependencies\nyarn install\n\n# Install dependencies, setup database \u0026 seed data\nyarn install \u0026\u0026 yarn medusa db:create \u0026\u0026 yarn medusa db:migrate \u0026\u0026 yarn run seed \u0026\u0026 yarn medusa user -e admin@test.com -p supersecret -i admin\n\n# Start Medusa project - backend \u0026 admin\nyarn dev\n\n## Setup Storefront\n\n# Go to folder\ncd ../storefront\n\n# Clone .env.template\ncp .env.template .env\n\n# Install dependencies\nyarn install\n```\n\n#### Setup publishable key\n\n- ✅ Visit [Admin: Publishable Key](http://localhost:9000/app/settings/publishable-api-keys)\n  - \u003cb\u003eCredentials\u003c/b\u003e:\n    - \u003cb\u003eemail\u003c/b\u003e: `admin@test.com`\n    - \u003cb\u003epassword\u003c/b\u003e: `supersecret`\n- ✅ Copy token key of \"Webshop\"\n- ✅ Open file - `storefront/.env`\n- ✅ Add token to this var - `NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY`\n\n```\n# Start Medusa storefront\nyarn dev\n```\n\nVisit the following links to see the Medusa storefront \u0026 admin\n\n- [Medusa Admin](http://localhost:9000/app)\n- [Medusa Storefront](http://localhost:8000)\n\n\u0026nbsp;\n\n# Update\n\nSome general guidelines for when you're updating this Starter to a newer version.\n\n## Update packages\n\nRun `yarn install` in both projects to update you're packages to the latest versions.\n\n## Run migrations\n\nTo reflect any changes made to data models, make sure to run `npx medusa db:migrate` in the backend project.\n\n\u003e Note: are you updating from a version of this Starter that didn't have the Approval module yet? Run `npx medusa exec src/scripts/create-approval-settings.ts` in the backend project to add approval settings to all existing companies.\n\n# Resources\n\n#### Learn more about Medusa\n\n- [Website](https://www.medusajs.com/)\n- [GitHub](https://github.com/medusajs)\n- [2.0 Documentation](https://docs.medusajs.com/v2)\n\n#### Learn more about Next.js\n\n- [Website](https://nextjs.org/)\n- [GitHub](https://github.com/vercel/next.js)\n- [Documentation](https://nextjs.org/docs)\n\n\u0026nbsp;\n\n## Contributors\n\n\u003ca href = \"https://github.com/medusajs/b2b-starter-medusa/graphs/contributors\"\u003e\n  \u003cimg src = \"https://contrib.rocks/image?repo=medusajs/b2b-starter-medusa\"/\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedusajs%2Fb2b-starter-medusa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedusajs%2Fb2b-starter-medusa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedusajs%2Fb2b-starter-medusa/lists"}