medusa-recommend-product-plugin
v0.1.3
Published
Plugin for product recommandation management
Downloads
340
Maintainers
Readme
Table of Contents
Usage
Installation
- Run the following command to install
yarn add medusa-plugin-name
- Add the plugin in your medusa plugin list to load it
Open the
medusa-config.js
locate theplugins
variable and add these lines
const plugins = [
// ...
{
resolve: "medusa-plugin-name",
options: {},
},
];
- Run migrations
npx medusa migrations run
Query parameters
| name | type | data type | description | | ---------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------ | | page | optional | number | The current page of the list. The default is
0
| | limit | optional | number | The size of the result |
Create environment file
Run the following command to create the environment from example file
cp .env.template .env
You can keep the environment variables value if you are going to use the provided docker compose
Setup medusa
Before you start medusa setup ensure that you start the database with the following command
docker compose up
Run migration
Run the following command to apply migrations
yarn medusa migrations run
Side you database
yarn seed
Create user
npx medusa user -e [email protected] -p some-password
Start medusa
yarn dev