Plugin to add a marketplace to Medusa. It is built using Meduse Extender.
- Link users to stores.
- Link products to stores.
- Create a store for every new user.
- Fetch only the products in the user's store.
- Allow registration of users.
You first need to install Medusa Extender in your Medusa store, so please follow the instructions to install it.
After that, install this plugin with NPM:
npm i medusa-marketplace
You can then import each of the modules into src/main.ts
:
import { ProductModule, UserModule, StoreModule } from 'medusa-marketplace';
And add the modules into the array passed to Medusa.load
:
await new Medusa(rootDir, expressInstance).load([
UserModule,
ProductModule,
StoreModule
]);