@godscodes/medusa-product-reviews
v0.0.7
Published
A starter for Medusa projects.
Maintainers
Readme
Medusa v2 Example: Product Reviews
This directory holds the code for the Product Review Guide.
You can either:
- install and use it as a Medusa application;
- or copy its source files into an existing Medusa application.
Prerequisites
Installation
- Clone the repository and change to the
product-reviewdirectory:
yarn add @godscodes/medusa-product-reviews2. Add the plugin to the plugins array in medusa-config.ts:
module.exports = defineConfig({
// ...
plugins: [
{
resolve: "@godscodes/medusa-product-reviews",
options: {}
}
]
})You'll find a "Reviews" page in the Medusa Admin.
Copy into Existing Medusa Application
If you have an existing Medusa application, copy the following directories and files into your project:
src/adminsrc/apisrc/linkssrc/modules/product-reviewsrc/workflows
Then, add the Product Review Module to medusa-config.ts:
module.exports = defineConfig({
// ...
modules: [
{
resolve: "./src/modules/product-review",
}
],
})Finally, run migrations:
npx medusa db:migrateMore Resources
- Medusa Documentatin
- OpenAPI Spec file: Can be imported into tools like Postman to view and send requests to this project's API routes.
