This repo shows how you can use custom Entities, Services, Endpoints, and Admin Extensions to build an Order Reaction feature in Medusa.
order-reactions.mp4
git clone git@github.com:srindom/medusa-order-reactions.git
cd medusa-order-reactions
yarn
medusa migrations run
yarn seed
yarn dev
The Admin Panel will open and you can log in with email: admin@medusa-test.com
password: supersecret
. Create an order and visit the Order Details page to see the Order Reactions widget.
The Order Reactions widget allows admin users to add Emoji reactions to Orders in their store. This is a fun little feature but is unlikely to bring a ton of business value to merchants. The approach used in building this feature is, however, a good example of how you can create deep customizations in Medusa that include both backend logic and a merchant UI, thereby tailoring Medusa to complex business requirements and bringing value to merchants that other platforms can't easily match.
This repo is for developers who want to build customizations in Medusa, and is meant to serve as inspiration for how to get started.
- Custom Entity
- Example: src/models/order-reaction.ts
- Visit Docs
- Custom Service
- Example: src/services/order-reaction.ts
- Visit Docs
- Custom Endpoints
- Example: src/api/order-reactions
- Visit Docs
- Admin Widget
- Medusa UI