Development Resources
In this guide, you'll find resources for building features, customizing your store, and integrating third-party services in your Medusa application, admin dashboard, and storefront.
Find Your Starting Point#
Choose the right guides based on what you want to build:
If you want to | Start with |
|---|---|
Build your own features and data models | |
Add a common commerce feature, such as product reviews | |
Build a complex use case, such as a marketplace | |
Connect a third-party service | |
Build or customize a storefront |
Build Custom Features and Data Models#
If your business needs a feature that Medusa doesn't provide, such as a new data model with its own logic and API, start with the Customization Guide.
The guide builds a brands feature step by step, teaching Medusa's concepts in the order you use them. You learn how to:
- Create a module with a data model that's stored in the database.
- Build a workflow that performs your feature's logic, with rollback if a step fails.
- Expose the feature in an API route.
- Associate your data model with an existing one, such as products.
- Add a page and a widget to the Medusa Admin to manage your data.
- Sync your data with a third-party system.
Start here if you're new to Medusa, since its patterns apply to any feature you build. The other guides on this page assume you know these concepts.
Add Common Commerce Features#
The How-to and Tutorials section has step-by-step guides for common commerce features. Each tutorial implements one feature end to end, including its data models, workflows, API routes, admin customizations, and storefront changes. Follow a tutorial as is, or use it as a base and change what differs in your store.
Tutorials cover features such as:
- Product reviews, wishlists, and pre-orders.
- Quote management and re-ordering.
- Loyalty points, customer tiers, and first-purchase discounts.
- Abandoned cart notifications and invoice generation.
Build Complex Use Cases#
If your business model differs from a standard online store, such as a marketplace or a subscription-based store, refer to the Recipes.
A recipe approaches a whole use case rather than a single feature. It shows which Medusa commerce features you can use as is, which parts you need to build, and how they fit together. Some recipes include a full example.
Recipes cover use cases such as:
- Marketplaces with multiple vendors.
- Subscriptions and digital products.
- B2B stores.
- Bundled and personalized products.
- Point of Sale (POS) and omnichannel stores.
Recipes are most useful when you're planning your store's architecture, before you write code.
Integrate Third-Party Services#
If your store relies on other services, such as a payment provider, a CMS, or an ERP, refer to the Integrations section. It lists available third-party services, such as payment providers, fulfillment services, notification platforms, search engines, and analytics tools. Each integration is either a Medusa-provided module provider or a tutorial for building it. It also links guides for building integrations for unlisted services.
Build a Storefront#
Your Cloud project's storefront is in the same repository as your Medusa application, and Cloud deploys it with your project. Learn more in the Storefront guide.
To customize that storefront or build a new one, refer to the Storefront Development guides. They explain how to implement a storefront's features with any frontend framework by sending requests to the Medusa application, covering the flows every storefront needs:
- Showing products, their prices, and their inventory.
- Managing the cart and implementing the checkout flow.
- Registering and logging in customers.
- Supporting multiple regions and languages.
Use them to change one flow in your existing storefront or to build a storefront for another channel, such as a mobile app.