A multi-vendor Medusa plugin
This plugin transforms your Medusa store into a robust multivendor marketplace.
The plugin was created as a result of a four-part series articles on Medium re how to create multivendor marketplace with Medusa 2.0:
Add plugin:
Add the following variables to your file:
Apply patch:
To ensure proper setup, follow these steps:
Open : Open the file in your project's root directory.
Add script: Add the following script under the section:
"scripts": {"postinstall": "node node_modules/@techlabi/medusa-marketplace-plugin/.medusa/server/src/patch-admin.js",// ... other scripts ...}
Run installation: Execute the installation process using yarn:
yarn
This script will automatically execute after all dependencies are installed, applying the necessary patch.
Add the following code to your file:
module.exports = defineConfig({projectConfig: { ... },plugins: [{resolve: "@techlabi/medusa-marketplace-plugin",options: {},},],})
This code connect plugin and helps to resolve an issue similar to https://github.com/medusajs/medusa/issues/11248.
Run database migrations:
npx medusa db:migrate
Start the project:
yarn dev
https://github.com/Tech-Labi/medusa2-marketplace-demo
Key features included:
To create a super admin, use the following request:
curl -X POST http://localhost:9000/stores/super -d '{ "email":"admin@test.com", "password": "supersecret"}' -H 'Content-Type: application/json' -H 'Authorization: supersecret'
Feel free to contribute to this plugin by submitting pull requests or creating issues for bug reports and feature requests.
Apache 2.0