# Medusa Product Reviews and Ratings

Medusa plugin to add product reviews and ratings functionality in the project.

[NPM Package](https://www.npmjs.com/package/medusa-plugin-reviews-and-ratings) | [Repository](https://github.com/IPS-Medusa/medusa-product-reviews-and-ratings.git)

## Features

- APIs for storefront reviews and ratings.
- UI for reviews and ratings in the admin panel.

---

## Prerequisites

- [Medusa backend](https://docs.medusajs.com/development/backend/install)

---

## How to Install

1\. Run the following command in the directory of the Medusa backend:

```bash
npm install medusa-plugin-reviews-and-ratings
```

2\. In `medusa-config.js` add the following at the end of the `plugins` array:

```js
const plugins = [
  // ...
  {
    resolve: `medusa-plugin-reviews-and-ratings`,
    options: {
      enableUI: true,
    },
  },
];
```

3\. Run Migrations of plugin:

```bash
npx medusa migrations run
```

---

## Test the Plugin

1\. Run the following command in the directory of the Medusa backend to run the backend:

```bash
npm run start
```
