An intetionally simple Medusa JS plugin. Useful for learning how Medusa plugins are built and as a starting point to create your own.
This plugin enables Youtube videos to be added to product pages via the admin dashboard.
- Admin UI widget
- New entity in DB
- Service to query DB
- Admin endpoints
- Store endpoint
- Tests for backend
- Test for admin UI widget
- Working build and bundle config
Plugin can be added to a Medusa backend in the usual way. medusa-config.js
const plugins = [
// ...
{
resolve: `medusa-sample-plugin`,
options: {
enableUI: true,
},
},
]