<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Medusa - Medium]]></title>
        <description><![CDATA[made for devs - Medium]]></description>
        <link>https://medium.com/medusa-commerce?source=rss----e38493b87934---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Medusa - Medium</title>
            <link>https://medium.com/medusa-commerce?source=rss----e38493b87934---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:39:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/medusa-commerce" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Community Highlights: Svelte Storefront, Medusa Flutter Admin, and lots of new plugins]]></title>
            <link>https://medium.com/medusa-commerce/community-highlights-svelte-storefront-medusa-flutter-admin-and-lots-of-new-plugins-22e9975552e6?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/22e9975552e6</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Nicklas Gellner]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 19:08:45 GMT</pubDate>
            <atom:updated>2023-08-10T19:17:14.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRYoCBPMutDs-7AphT6a4w.jpeg" /></figure><p>The Medusa community constantly makes new additions to the Medusa ecosystem. We are always excited about these contributions, which range from plugins to platforms and templates. Currently, our <a href="https://medusajs.com/plugins/">Plugin Library</a> has more than 100 open-source plugins available via npm. Below, we wanted to highlight some of the latest additions from our community members.</p><h3>Latest community contributions</h3><h4>SvelteKit Storefront Starter for Medusa</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*cHVGub8FNlYh5rzt" /></figure><p>In our most recent <a href="https://medusajs.com/blog/community-highlights-1/">community highlight</a>, we were excited to announce the introduction of the SvelteKit client. Now, <a href="https://github.com/pevey">Lacey Pevey</a> made it even easier to get started using <a href="https://kit.svelte.dev/">Svelt</a> expeerience with her new <a href="https://github.com/pevey/sveltekit-medusa-starter/tree/main">SvelteKit eCommerce Store Starter</a>, a Svelte storefront designed to integrate with your Medusa backend seamlessly.</p><p>The starter uses the <a href="https://medusajs.com/plugins/sveltekit-medusa-client/">SvelteKit client</a> behind the scenes to interact with the Medusa backend. It comes with ready-to-use pages like a product gallery and product detail pages. You will also find auth, cart, and checkout flows implemented in the starter. All the pages and flows are customizable to adapt the template to your use case.</p><p>You can watch Lacey set up Medusa with Svelte in her latest video from the Svelte Society in the Community Radar section.</p><h4>Postmark Plugin</h4><p><a href="https://github.com/breakerh">Bram Hammer</a> recently contributed with a new <a href="https://medusajs.com/plugins/medusa-plugin-postmark/">Postmark plugin</a>. The plugin lets you use the Postmark service as a <a href="https://docs.medusajs.com/development/notification/overview">notification provider</a> with your Medusa backend. This can be useful for upselling and transactional emails, among other things.</p><p>Bram even took this plugin a step further by adding support for generating and attaching PDF invoices and credit notes to customer emails. Additionally, it lets you send personalized reminder emails to customers who have abandoned their cart or upselling emails to customers who have recently purchased from specific collections.</p><h4>Medusa Blog Plugin</h4><p><a href="https://github.com/pevey">Lacey Pevey</a> developed a <a href="https://medusajs.com/plugins/medusa-plugin-blog/">blog plugin</a> for users managing blog pages as part of their commerce site. This plugin expands the capabilities of your Medusa backend by enabling you to organize and manage blogging content.</p><p>With this plugin, you can create your own blog posts and conveniently categorize them using tags such as product, collection, or custom values already existing within your store. Additionally, it enables you to query and retrieve all your blog posts based on various criteria, including tags, categories, products, or collections, for a more user-friendly blog experience.</p><h4>Medusa Admin Flutter in beta</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*6xK9w0IWO6WrOnT2" /></figure><p><a href="https://github.com/mllrr96">Ragheb</a> is developing a mobile-optimized Medusa Admin app using Flutter for iOS and Android. The app is currently in beta, but you can test it and keep track of newly added features and enhancements by visiting its <a href="https://github.com/mllrr96/Medusa-Admin-Flutter">git repository</a>.</p><p>Despite being in beta, the app already offers a range of valuable features, such as updating store settings (regions, sales channels, etc.) and managing collections of products, customers, and discounts. The app also includes a built-in dark mode feature.</p><h4>Canada Post Fulfillment plugin</h4><p><a href="https://github.com/alexghebo">Alexghebo</a> created a <a href="https://medusajs.com/plugins/medusa-fulfillment-canadapost/">Canada Post plugin</a> for integrating your Medusa backend with the Canada Post fulfillment provider, which can be utilized during the checkout process and throughout the order management workflow.</p><p>The plugin enables customers to access real-time shipping rates and track their orders. It also allows merchants to manage shipping labels, generate customs documentation, and monitor shipment statuses, ultimately enhancing the overall shopping experience for buyers and sellers.</p><h4>Platform.sh for Medusa deployment</h4><p><a href="https://github.com/vincenzo">Vinnie Russo</a> built a <a href="https://github.com/platformista/medusa">Platform.sh template</a> designed to ease the deployment process for a Medusa ecommerce solution. The template includes the essential Medusa backend infrastructure, the admin dashboard, and the Next.js storefront.</p><p>The template allows users to use <a href="https://platform.sh/">Platform.sh</a>’s infrastructure to launch their Medusa ecommerce shop with a single click. <a href="https://platform.sh/">Platform.sh</a> is a PaaS that offers a unified solution for building, running, and scaling websites and applications.</p><h3>Created something cool with Medusa? Let us know!</h3><p>We would love to hear about the cool projects you’ve created with Medusa. Whether it’s plugins, widgets, storefront starters, your own store built with Medusa, or anything similar.</p><p>You can share all your cool projects in the <em>#Showcase</em> channel on our <a href="https://discord.com/invite/medusajs">Discord</a> where we usually collect the latest community highlights. You can also learn how to publish your plugins on our Plugin Library using this guide in our <a href="https://docs.medusajs.com/development/plugins/publish">documentatio</a>n.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22e9975552e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/community-highlights-svelte-storefront-medusa-flutter-admin-and-lots-of-new-plugins-22e9975552e6">Community Highlights: Svelte Storefront, Medusa Flutter Admin, and lots of new plugins</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing Next.js Starter with App Router support]]></title>
            <link>https://medium.com/medusa-commerce/announcing-next-js-starter-with-app-router-support-70937020dcb4?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/70937020dcb4</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[medusa]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Victor Gerbrands]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 11:11:56 GMT</pubDate>
            <atom:updated>2023-07-13T11:11:56.268Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>Get a head start with your storefront using our updated Next.js Starter Template for Medusa.</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NeWyls8-6r93TwRIP4FI0g.jpeg" /></figure><p>Unique commerce experiences begin at the frontend. We are therefore excited to announce our newly updated <a href="https://github.com/medusajs/nextjs-starter-medusa">Next.js Starter Template</a> with App Router support as an easy way for developers to get started building performant storefronts for Medusa.</p><p>The template combines Next.js 13, Tailwind, and Typescript for a modern stack and comes with key e-commerce features out-of-the-box. The template and Medusa’s commerce building blocks ensure developers can focus on building customer-facing features that create value instead of rewriting table-stakes logic.</p><p>Visit the hosted <a href="https://next.medusajs.com/">demo of the template</a>. Or, <a href="https://docs.medusajs.com/starters/nextjs-medusa-starter">learn how to set it up in our Docs</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4S7sWxUnrI8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4S7sWxUnrI8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4S7sWxUnrI8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/611535a7557bfca0cd39c30cb4c6136c/href">https://medium.com/media/611535a7557bfca0cd39c30cb4c6136c/href</a></iframe><h3>About Medusa</h3><p>Medusa is an SDK for commerce consisting of Node.js packages with core logic for <a href="https://docs.medusajs.com/modules/carts-and-checkout/overview">carts</a>, <a href="https://docs.medusajs.com/modules/discounts/overview">discounts</a>, <a href="https://docs.medusajs.com/modules/products/overview">products</a>, <a href="https://docs.medusajs.com/modules/orders/overview">order management</a>, and more. In combination, the packages provide a digital commerce API with default behavior similar to other platforms’ APIs. But, unlike other platforms, Medusa is easily extended and customized to create rich and differentiated customer experiences when needed.</p><h3>Next.js 13 Support</h3><p>The Medusa Next.js Starter Template has been fully updated to support Next.js 13 and App Router, which unlocks <a href="https://nextjs.org/docs/pages/building-your-application/routing/dynamic-routes">easy dynamic routing</a> based on your data and improved SSR with <a href="https://nextjs.org/docs/getting-started/react-essentials#server-components">React Server Components</a>. Additionally, Next.js 13 introduces new features and improvements for font loading, serverless support, and efficient image optimization, making it a great foundation for performant e-commerce storefronts.</p><h3>Template Features</h3><p>Out of the box, our Next.js Starter Template comes with the following features:</p><h4>Product Detail Pages</h4><p>The Starter Template includes informative and visually appealing product detail pages. Display product descriptions, images, pricing, and other essential information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pXO8HyWp_pJyiYY-x6HG8A.png" /><figcaption>Product Detail Page</figcaption></figure><h4>Product Overview Page</h4><p>Guide your customers through your product range with intuitive product overview pages. Our Starter Template enables you to showcase your products in an organized manner with collection filters automatically generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXLwX-zWBoLdTOaGRE9taw.png" /><figcaption>Product Overview Page</figcaption></figure><h4>Product Search Integrations</h4><p>The Medusa Next.js Starter Template supports popular instant-search providers <a href="https://github.com/medusajs/medusa/tree/develop/packages/medusa-plugin-meilisearch">Melliseach</a> and <a href="https://github.com/medusajs/medusa/tree/develop/packages/medusa-plugin-algolia">Algolia</a> out of the box. With these integrations, you can provide fast and accurate search results.</p><h4>Product Collections</h4><p>Create product collections to highlight specific themes, seasons, or promotions. With our Starter Template, collection pages are dynamically created, filterable, and added to the theme footer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OO8RsRnkMCN95IUl5Qlxcg.png" /><figcaption>Product Collection</figcaption></figure><h4>Cart</h4><p>Our Starter Template provides robust cart functionality, allowing customers to conveniently add products, view their cart contents, and modify quantities. The cart is stored in the database and persistent over multiple user sessions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NgdEOg9rDuxCVKHQJLDoA.png" /><figcaption>Cart</figcaption></figure><h4>Checkout with Payment Integrations</h4><p>Ensure a secure and seamless checkout process with integrated payment gateways. The Medusa Next.js Starter Template seamlessly works with popular payment providers <a href="https://github.com/medusajs/medusa/tree/develop/packages/medusa-payment-paypal">PayPal</a> and <a href="https://github.com/medusajs/medusa/tree/develop/packages/medusa-payment-stripe">Stripe</a>, out of the box. Enable your customers to complete their purchases smoothly, using familiar payment methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oixRlcljT7O67TpvGAZplw.png" /><figcaption>Checkout</figcaption></figure><h4>User Accounts</h4><p>Foster personalized experiences and customer loyalty by implementing user account functionality. With our Starter Template, customers can create accounts, manage their profiles, and access their order history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_Ou8SGGeazTN2hJIId6Yg.png" /><figcaption>Account overview</figcaption></figure><h4>Order Details</h4><p>Keep your customers informed and satisfied with real-time order updates. The Medusa Next.js Starter Template enables you to provide order status, shipping information, and tracking details, ensuring transparency throughout the entire purchase journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgYP6urrzVUyOKftBDbTJw.png" /><figcaption>Order confirmed</figcaption></figure><h3>More Medusa and Next.js</h3><p>To get started, <a href="https://github.com/medusajs/nextjs-starter-medusa">clone the Medusa Next.js Starter Template from GitHub</a>.</p><p>Or check out our other Next-focused product launches, like our <a href="https://docs.medusajs.com/modules/products/serverless-module">Product Module</a> that allows you to access Products, Variants, Categories, and more through a standalone package that can be installed and run in Next.js functions. Read more about it in our <a href="https://medusajs.com/blog/announcing-product-module/">latest announcement post</a>, or check out how we used it to create a <a href="https://product-module.medusajs.com/">personalized storefront experience in our demo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70937020dcb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/announcing-next-js-starter-with-app-router-support-70937020dcb4">Announcing Next.js Starter with App Router support</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medusa Community Highlights: Strapi Integration, SES Plugin, and More!]]></title>
            <link>https://medium.com/medusa-commerce/medusa-community-highlights-strapi-integration-ses-plugin-and-more-27cb4a19cf1d?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/27cb4a19cf1d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Mon, 15 May 2023 11:43:28 GMT</pubDate>
            <atom:updated>2023-05-15T11:43:28.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UXgCxBQcaXCMf27AygPHow.jpeg" /></figure><p><a href="https://medusajs.com/readme/">Changing the way commerce is built</a> is no easy undertaking. Therefore, we are incredibly excited about our Medusa community, their support, and their amazing contributions that make it easier for others to move to a more modular way of building commerce.</p><p>This article is part of an ongoing series that periodically highlights community plugins, storefront starters, quotes, and more. Join our community of over 5,000 developers on <a href="https://discord.com/invite/medusajs">Discord</a> to stay updated with all community-related news and discussions. You can also visit our <a href="https://medusajs.com/plugins/">Plugin Library</a> to browse many community contributions.</p><h4>Latest community contributions</h4><h4>Medusa and Strapi Integration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*lAV6l07-7pgaZetH" /></figure><p><a href="https://github.com/SGFGOV">Govind Diwakar</a> has created a <a href="https://github.com/SGFGOV/medusa-strapi-repo">Strapi monorepository</a> with all the components necessary for you to set up and use Strapi with Medusa. Within this monorepository, you’ll find a Strapi project, a Medusa plugin for Strapi, a Strapi plugin for Medusa, and other components that will make your integration between Medusa and Strapi successful.</p><p>By integrating Strapi and Medusa, you can utilize rich CMS features that Strapi provides while using Medusa’s powerful commerce features.</p><p>Check out the <a href="https://github.com/SGFGOV/medusa-strapi-repo">monorepository</a> for more details about the project and how to set it up.</p><h4>Medusa SES Plugin</h4><p><a href="https://github.com/pevey">Lacey Pevey</a> created a plugin that allows you to use AWS Simple Email Service (SES) as a notification provider in your Medusa backend. By using this plugin, you can send emails to the customer when an order is placed, a password reset has been requested, a gift card has been created, and more using AWS SES.</p><p>The templates used for the emails are stored within your Medusa backend in a data directory, and they’re based on handlebars. So, they’re compatible with SendGrid templates as well.</p><p>Check out the <a href="https://medusajs.com/plugins/medusa-plugin-ses/">Medusa SES Plugin</a> for more details about its features and how to install it.</p><h4>Medusa SvelteKit Client</h4><p>We also got a much-requested SvelteKit client that lets you interact with your Medusa backend from a SvelteKit storefront. With this client, you can easily build a SvelteKit storefront or admin for your Medusa backend.</p><p>SvelteKit enables you to combine the fluid user experience of client-side reactivity with the ability to handle logic on the server when desired. This keeps your Medusa backend firewall-protected and accessible only to your storefront server, which provides an additional layer of security compared to directly exposing your backend.</p><p>Check out the <a href="https://medusajs.com/plugins/sveltekit-medusa-client/">Medusa SvelteKit Client</a> for more details about its features and how to install it. Thanks to <a href="https://github.com/pevey">Lacey Pevey</a> for another great contribution.</p><h4>Community Radar</h4><h3>Ante Primorac on Twitter: &quot;Undoubtedly, the new Modules feature is the most remarkable addition to Medusa. It offers unparalleled customization options for the core functionality and the unique capability of running each module as a standalone service, representing a significant step towards greater... / Twitter&quot;</h3><p>Undoubtedly, the new Modules feature is the most remarkable addition to Medusa. It offers unparalleled customization options for the core functionality and the unique capability of running each module as a standalone service, representing a significant step towards greater...</p><h4>Created something cool with Medusa? Let us know!</h4><p>We would love to hear about all the cool projects you’ve created with Medusa. Whether it’s plugins, storefront starters, your own store built with Medusa, or anything similar, we’d love to see it and hopefully share it in our next Community Highlights!</p><p>You can share all your cool projects in the Showcase channel on our <a href="https://discord.com/invite/medusajs">Discord</a>. You can also learn how to publish your plugins on our Plugin Library using this guide in our <a href="https://docs.medusajs.com/development/plugins/publish">documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27cb4a19cf1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/medusa-community-highlights-strapi-integration-ses-plugin-and-more-27cb4a19cf1d">Medusa Community Highlights: Strapi Integration, SES Plugin, and More!</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modular building blocks: The case of Amazon]]></title>
            <link>https://medium.com/medusa-commerce/modular-building-blocks-the-case-of-amazon-b8bfeff820c3?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/b8bfeff820c3</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[general-programming]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Thu, 04 May 2023 14:07:12 GMT</pubDate>
            <atom:updated>2023-05-04T14:07:12.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5HESu4jZecZ16uCUosKaag.jpeg" /></figure><p>Amazon Web Services (AWS) is a giant in cloud computing. It provides a variety of services that facilitate managing and hosting infrastructure on the cloud. AWS is used widely by both companies and individuals to build or host any type of computer application. This includes, but not limited to, web servers, serverless applications, file and object storage, and much more.</p><p>AWS have become a go-to for both developers and businesses as they’re guaranteed a reliable service for all the computing needs. Although nowadays, there are many clouding hosting services that may provide similar features, it wasn’t the case before Amazon started building AWS.</p><p>Building AWS was a remarkable foresight from Amazon that understood what businesses and developers needed to continue innovating without limitations. This article explores the story of how Amazon built AWS.</p><h4>Early Beginning of AWS</h4><p>In the early 2000s, Amazon (named <a href="http://amazon.com/">Amazon.com</a> back then) was only focused on the retail industry. Although it had a software development team internally that built the Amazon store, it wasn’t considered a technology company and didn’t garner any interest from developers.</p><p>In 2002, Tim O’Reilly, a renowned author and founder of O’Reilly Media, visited Jeff Bezos to show him a tool he created called Amarank. This tool automatically opened Amazon’s store every few hours and scanned the ranking of O’Reilly Media books and its competitors’ books on Amazon’s ranking for books. It did this using screen scraping. This tool allowed O’Reilly to keep track of the rankings without having to manually check the Amazon store.</p><p>O’Reilly then suggested to Bezos that Amazon exposes its data, such as products or rankings, through APIs. This would allow other companies and developers to build powerful tools on top of Amazon.</p><blockquote>“Companies need to think not just what they can get for themselves from new technologies, but how they can enable others” — Tim O’Reilly</blockquote><p>After O’Reilly’s visit, Bezos discussed this issue with the top Amazon executives. It was then pointed out that an engineer named Rob Frederick, the founder of a mobile commerce startup called Convergence that Amazon acquired, was working on a similar project inside Amazon. He was creating APIs that would allow mobile devices to access Amazon’s store.</p><p>So, Bezos decided to add Frederick to an Associates group with the mission to create APIs that allow developers to build on top of Amazon’s store. These APIs would eventually allow developers to access and perform operations such as publishing products or using payments systems.</p><p>After building these APIs, Amazon held its first developer conference, making developers an essential asset to Amazon, similar to customers of the Amazon store. Then, the group that was run by Rob Frederick and the Associates group was named “Amazon Web Services”.</p><h4>Amazon’s Struggle with Infrastructure</h4><p>Around the same time Amazon was building the stepping stones of AWS, Amazon was facing troubles with their infrastructure. As their business was growing in traffic, and as they were adding more features into the Amazon store, their monolithic architecture built in the mid 90s was no longer sufficient.</p><p>So, Amazon decided to transition their infrastructure to a service-oriented architecture. This allowed them to rebuild their systems into independent but connected components. This transition took 3 years.</p><p>During this transition, Amazon teams struggled to access Amazon’s resources and infrastructure while building or testing new features. Although Amazon was moving into a more flexible architecture, its resources were still managed by a single team in the Seattle headquarters.</p><p>This problem delayed the roll-out of new features and frustrated both software developers at the company and the top executives, including Jeff Bezos. It was a recurring and visible problem, as teams would often present their new features to the executives, but admit they never got the chance to actually test it out.</p><p>Jeff Bezos then got inspired by a book he was reading at the time called Creation by Steve Grand. The book gave him the idea to build the essential building blocks of computing that would allow Amazon’s developers to freely explore, innovate, and be creative. This wouldn’t only solve Amazon’s infrastructure problems, but similar problems other companies and developers were evidently experiencing as well.</p><blockquote>“Developers are alchemists and our job is to do everything we can to get them to do their alchemy” — Jeff Bezos</blockquote><p>The first steps to building these building blocks was to write down the list of “primitives” of computing. Those included storage, bandwidth, payments, among other primitives. Then, Amazon started putting together teams to develop each of these primitives as services.</p><h4>Building S3 and EC2</h4><p>The first two services, which are essential services that developers use now, are Simple Storage Service, or S3, and Elastic Compute Cloud, or EC2.</p><p>The team assigned to build S3 worked closely with Jeff Bezos, who was highly interested in the development of these services. Bezos had big ideas and expectations of S3 that the team working on it struggled to keep up with.</p><p>While the team looked over details related to service growth and downtime, Bezos insisted that the service needs to be built from the start ready to scale infinitely and with no downtime.</p><p>On the other hand, EC2 was built in isolation by a team of two, Chris Pinkham and Chris Brown, working remotely from South Africa. The idea behind building EC2 was to allow developers to build and run their application on Amazon’s servers, regardless of what type of application it was. The plan was to build EC2 on top of an open source tool called <a href="https://xenproject.org/">Xen</a> which made it possible to run several applications on one physical server.</p><h4>The Launch of Amazon Web Services</h4><p>S3 was launched in March 2006. It allowed developers and websites to store files such as photos and documents on Amazon’s servers. Although S3 is a popular service now, at the time it hardly got any traffic and was overlooked by developers and companies.</p><p>A few months later, EC2 was in public beta and available for developers to use. Developers rushed to get access to EC2 and start building their applications using Amazon’s servers. This ultimately lead to more traffic and usage of S3 as well.</p><p>These services were highly unanticipated by rival companies such as Google and Microsoft. Amazon was the only company dabbling with cloud computing and providing developers with services that allowed them to build with no limitations. As these services rose in popularity, rival companies started noticing what they were missing out on, which lead them to launch their own similar services (Microsoft announced Azure in 2010, and Google announced Compute Engine in 2012).</p><p>However, Amazon was already many steps ahead at that point. Other teams at Amazon were already working on and launching other services, such as Flexible Payment Services and Amazon CloudSearch.</p><h4>The Impact of AWS</h4><p>AWS transformed both Amazon and software development as we know it. Inside Amazon, teams started relying on AWS and testing it even when services were in early stages. This allowed them to find issues in AWS early on, and facilitated building and rolling out new feature. It solved a huge hurdle that the engineering teams within Amazon were facing.</p><p>Companies and startups also started relying heavily on AWS. It removed all restrictions they previously faced with building and creating applications regardless of the sector they worked in. AWS pioneered a new era powering innovation and creativity. Amazon was finally considered a technology company following their launch of AWS.</p><p>Amazon’s revolutionary work with AWS spawned from the need for flexibility within its rigid architecture at the time. It limited their innovation and ability to grow as an ecommerce business. Amazon realized something essential, and arguably ahead of its time: monolithic architecture hinders a business’s growth, and modularity facilitates it.</p><p>Amazon’s transition in their architecture and motivation behind building AWS was to provide developers, both within the company and globally, with the necessary tooling to build without limitations. As Bezos indicated at the time, trying to guess what a developer would need when building an application was a thing from the past.</p><p>Amazon’s forward-thinking strategy of empowering developers through APIs and infrastructure services was a game changer for their cloud offering. As we look to the future of ecommerce, the role of developers in shaping the industry is critical.</p><p>While there is still progress to be made in optimizing developer experience, at <a href="https://medusajs.com/">Medusa</a> we aim to follow in Amazon’s footsteps by providing ecommerce developers with the necessary building blocks to build, scale, and innovate. With the right primitives in place, we believe that developers can build the Amazons of tomorrow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8bfeff820c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/modular-building-blocks-the-case-of-amazon-b8bfeff820c3">Modular building blocks: The case of Amazon</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing Medusa’s Community Publication]]></title>
            <link>https://medium.com/medusa-commerce/announcing-medusas-community-publication-ba905077a64b?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/ba905077a64b</guid>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Tue, 02 May 2023 10:18:42 GMT</pubDate>
            <atom:updated>2023-05-02T10:18:42.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TlK_XGKt0jawpWIHE4KVrA.jpeg" /></figure><p>At Medusa, we’re introducing our new community publication, <a href="https://medusa-community.hashnode.dev/welcome-to-medusas-community-publication">Medusa Community</a>, hosted on Hashnode. This publication gives writers interested in writing about Medusa a platform where they can be recognized and paid for their work.</p><p>Keep reading below to learn more about this publication and how you can join!</p><h4>Why create a community publication?</h4><p>Last year, we created a Writers Program at Medusa, where we were able to work with over 200 writers in producing content related to Medusa. This has allowed us to create diverse content of different types and levels based on the different skills the community writers provided.</p><p>As the Writers Program continued to grow and gain interest, we realized how important it is to highlight the community’s work and make it easier for more people to contribute and join. The community publication aims to solve a lot of the limitations we had with the Writers Program, while also providing creative and useful content for the community, by the community.</p><h4>How does it work?</h4><p>We share all the details about the new publication in our new <a href="https://medium.com/74a2bf43b4ce43eeba200382f599321a">Write for Us page</a>. To sum it up:</p><ul><li>You can join as a writer using <a href="https://ky5eo2x1u81.typeform.com/to/J6lDIwtJ">this form</a>.</li><li>You’ll then receive an email with the details to join the Hashnode publication and any other necessary resources.</li><li>That’s it! You can then start writing and submitting content to the community publication.</li></ul><h4>Important notes</h4><ul><li>It’s important to sign up again as a writer using the form mentioned above, even if you were previously part of the Writers Program.</li><li>Your article must match our <a href="https://medium.com/8f3be54b95654fe8bfbb45503e7eed8a">writing guidelines</a>.</li><li>Articles are not instantly published on the publication, as we might specify a schedule on how and when we decide to post the article.</li><li>You’ll receive payment if your article is published or scheduled.</li><li>Although you can generally write about anything related to Medusa, we also have guidelines on what topics we are against and some things to keep in mind when writing. You can learn more <a href="https://medium.com/8f3be54b95654fe8bfbb45503e7eed8a">here</a>.</li></ul><h4>Benefits of joining the Community Publication</h4><ul><li>Your content will be recognized by the Medusa community. We’ll also often share articles we find insightful or creative across our channels.</li><li>You’ll get paid for your work. We also offer bonus payments if your article gets featured on Hashnode or other publications.</li></ul><h4>Start writing for Medusa</h4><p>Interested in the Community Publication? You can join the publication through <a href="https://ky5eo2x1u81.typeform.com/to/J6lDIwtJ">this form</a>.</p><p>Check out the Medusa Community Publication and follow it on Hashnode to stay updated with all community content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba905077a64b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/announcing-medusas-community-publication-ba905077a64b">Announcing Medusa’s Community Publication</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Medusa’s Plugins Library]]></title>
            <link>https://medium.com/medusa-commerce/introducing-medusas-plugins-library-938e2a0c6860?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/938e2a0c6860</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 10:51:36 GMT</pubDate>
            <atom:updated>2023-04-26T10:51:36.563Z</atom:updated>
            <content:encoded><![CDATA[<h4>Our new Plugin Library provides an overview of all Medusa plugins, including payments, notifications, shipping, CMS, storage, search, and more.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1Y2SJFvj-YEcMwLrkAiLQ.jpeg" /></figure><p>At Medusa, we empower developers to do more with less. Our modular approach to commerce tooling equips developers with the means to create rich applications without hacky workarounds.</p><p>These applications often integrate with 3rd party solutions e.g. to accept payments, which we support through easy-to-configure plugins. To make our plugins more conveniently accessible, we are excited to have recently launched our Plugin Library.</p><p>Our <a href="https://medusajs.com/plugins/">Medusa Plugin Library</a> provides a simple way to view the pre-built plugins available for Medusa. The list includes plugins supported by the core team (indicated by a small Medusa logo) and community plugins that can be accessed through npm.</p><h3>Covering the full commerce stack</h3><p>By using Medusa commerce modules, you already get a strong commerce foundation out of the box, including support of <a href="https://docs.medusajs.com/modules/multiwarehouse/overview">inventory and multi-warehousing</a>, <a href="https://docs.medusajs.com/modules/regions-and-currencies/overview">multi-region support</a>, <a href="https://docs.medusajs.com/modules/sales-channels/overview">multi-channel handling</a>, <a href="https://docs.medusajs.com/modules/taxes/overview">advanced tax</a>, <a href="https://docs.medusajs.com/modules/price-lists/overview">promotion features</a>, and more.</p><p>Our Plugin Library allows you to extend beyond these modules and quickly build a connected stack with integrations for services such as:</p><ul><li><strong>Payments</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-payment-stripe/">Stripe</a>, <a href="https://medusajs.com/plugins/medusa-payment-paypal/">Paypal</a>, <a href="https://medusajs.com/plugins/medusa-payment-adyen/">Adyen</a>, <a href="https://medusajs.com/plugins/medusa-payment-klarna/">Klarna</a>)</li><li><strong>Notifications</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-plugin-sendgrid/">Sendgrid</a>, <a href="https://medusajs.com/plugins/medusa-plugin-mailchimp/">Mailchimp</a>, <a href="https://medusajs.com/plugins/medusa-plugin-slack-notification/">Slack</a>, <a href="https://medusajs.com/plugins/medusa-plugin-twilio-sms/">Twilio</a>)</li><li><strong>Shipping</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-fulfillment-webshipper/">Webshipper</a>, <a href="https://medusajs.com/plugins/medusa-plugin-brightpearl/">Brightpearl</a>, <a href="https://medusajs.com/plugins/medusa-fulfillment-shippo/">Shippo</a>)</li><li><strong>Search</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-plugin-meilisearch/">MeiliSearch</a>, <a href="https://medusajs.com/plugins/medusa-plugin-algolia/">Algolia</a>)</li><li><strong>Storage</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-file-s3/">S3</a>, <a href="https://medusajs.com/plugins/medusa-file-spaces/">DigitalOcean</a>, <a href="https://medusajs.com/plugins/medusa-file-minio/">MinIO</a>)</li><li><strong>CMS</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-plugin-contentful/">Contentful</a>)</li><li><strong>Analytics and monitoring</strong> (e.g. <a href="https://medusajs.com/plugins/medusa-plugin-segment/">Segment</a>, <a href="https://medusajs.com/plugins/medusa-plugin-sentry/">Sentry</a>)</li></ul><h3>Contributing your own plugin</h3><p>We always welcome community contributions. To get your plugin live in our Plugin Library, all you have to do is <a href="https://docs.medusajs.com/development/plugins/create">create your own Medusa plugi</a>n and publish it through npm following our <a href="https://docs.medusajs.com/development/plugins/publish">publishing guidelines</a>. Within a week the plugin will appear in the plugin library. If this is not the case, feel free to create an Issue on GitHub, and we’ll look into it.</p><p>On that note, we want to thank our community so far for helping us create an extensive plugin universe. Without your contributions, we would not have much to showcase.</p><h3>More Medusa</h3><p>If you want to know more about our recent release and product priorities head to our <a href="https://medusajs.com/recap/">April’23 Recap</a>. Otherwise, stay in touch via our newsletter for more product updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938e2a0c6860" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/introducing-medusas-plugins-library-938e2a0c6860">Introducing Medusa’s Plugins Library</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extending Medusa Example: Creating a Marketplace]]></title>
            <link>https://medium.com/medusa-commerce/extending-medusa-example-creating-a-marketplace-380710a36738?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/380710a36738</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 10:46:57 GMT</pubDate>
            <atom:updated>2023-04-19T10:46:56.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_2E_38cgKS_NH2aryy0DA.jpeg" /></figure><p><a href="https://medusajs.com/">Medusa</a> is the set of building blocks that developers can use to create their custom use case. Instead of forcing developers to use a standardized solution, leading them to enforce hacky-workarounds, Medusa embraces customization and extendability.</p><p>This tutorial gives an example of that by giving an overview look of how you can create a marketplace with Medusa. While the steps in this tutorial may not lead to a fully-fledged marketplace, they will give you an idea of how it can be implemented by building the foundation. You’ll also find other resources at the end of the tutorial that can guide you through the rest of your marketplace development.</p><blockquote>Last year, we wrote a blog about how to create a marketplace with Medusa and Medusa Extender. At the time, Medusa did not provide the necessary functionalities to extend its core, which required developers to use Medusa Extender. With the release of <a href="https://medusajs.com/recap/">v1.8 of Medusa</a>, the marketplace can now be built with Medusa only. This tutorial illustrates how to do that.</blockquote><p>The code of this tutorial is available in <a href="https://github.com/shahednasser/medusa-1.8-marketplace-tutorial">this GitHub Repository</a>.</p><h4>What You’ll be Building</h4><p>By following along the steps in this tutorial, you’ll be implementing the following logic:</p><ol><li>Every time a user is created, a new store associated with that user is created.</li><li>When the user retrieves the store’s details, their store’s details will be retrieved.</li><li>Every time a product is created, it is associated with the store of the logged-in user.</li><li>The user will only be able to retrieve products from their store.</li></ol><h4>Prerequisites</h4><p>This article assumes you already have a Medusa backend with v1.8 of Medusa installed. If not, you can learn how to install it <a href="https://docs.medusajs.com/development/backend/install">here</a>.</p><h4>Extend the Store Entity</h4><p>In this section, you’ll extend the Store entity so that you can later add new relations to it. Extending an entity requires extending its repository as well.</p><p>You can learn more about extending an entity in <a href="https://docs.medusajs.com/development/entities/extend-entity">our documentation</a>.</p><p>Create the file src/models/store.ts with the following content:</p><pre>import { Entity } from &quot;typeorm&quot;<br>import {<br>  Store as MedusaStore,<br>} from &quot;@medusajs/medusa&quot;<br><br>@Entity()<br>export class Store extends MedusaStore {<br>  // TODO add relations<br>}</pre><p>This imports the Store entity from the Medusa core package as MedusaStore and creates a new Store entity that extends it.</p><h4>Extend the StoreRepository</h4><p>Next, create the file src/repositories/store.ts with the following content:</p><pre>import { Store } from &quot;../models/store&quot;<br>import { <br>  dataSource,<br>} from &quot;@medusajs/medusa/dist/loaders/database&quot;<br>import {<br>  StoreRepository as MedusaStoreRepository,<br>} from &quot;@medusajs/medusa/dist/repositories/store&quot;<br><br>export const StoreRepository = dataSource<br>  .getRepository(Store)<br>  .extend({<br>    ...Object.assign(<br>      MedusaStoreRepository, <br>      { target: Store }<br>    ),<br>  })<br><br>export default StoreRepository</pre><p>This imports the StoreRepository from the Medusa core package as MedusaStoreRepository, then extends the repository to target the new Store entity you created.</p><h4>Create index.d.ts</h4><p>Finally, to ensure TypeScript is aware of the new type you’re creating, create the file src/index.d.ts with the following content:</p><pre>export declare module &quot;@medusajs/medusa/dist/models/store&quot; {<br>  declare interface Store {<br>    // TODO add relations<br>  }<br>}</pre><p>You’ll later add relations to the Store interface as you add them to the Store entity. You’ll also be using the same file when extending other entities.</p><h4>Extend the User Entity</h4><p>Next, you’ll extend the user entity to add a new column and relation to the Store entity. The steps are the same as the ones described in the previous section.</p><p>Start by creating the src/models/user.ts file with the following content:</p><pre>import { Column, Entity, Index, JoinColumn, ManyToOne } from &quot;typeorm&quot;<br>import {<br>  User as MedusaUser,<br>} from &quot;@medusajs/medusa&quot;<br>import { Store } from &quot;./store&quot;;<br><br>@Entity()<br>export class User extends MedusaUser {<br>  @Index(&quot;UserStoreId&quot;)<br>  @Column({ nullable: true })<br>  store_id?: string;<br><br>  @ManyToOne(() =&gt; Store, (store) =&gt; store.members)<br>  @JoinColumn({ name: &#39;store_id&#39;, referencedColumnName: &#39;id&#39; })<br>  store?: Store;<br>}</pre><p>This imports the User entity from the Medusa core package as MedusaUser and creates a new entity User that extends it. In the entity, you add a new column store_id and a relation store to the Store entity.</p><p>Then, in the Store entity created in src/models/store.ts, add the following relation to the entity:</p><pre>import { Entity, OneToMany } from &quot;typeorm&quot;<br>import { User } from &quot;./user&quot;;<br>// other imports...<br><br>@Entity()<br>export class Store extends MedusaStore {<br>	@OneToMany(() =&gt; User, (user) =&gt; user?.store)<br>  members?: User[];<br>}</pre><p>You might see some TypeScript errors in your editor now. This can be resolved by replacing the content of the src/index.d.ts with the following content:</p><pre>export declare module &quot;@medusajs/medusa/dist/models/store&quot; {<br>  declare interface Store {<br>    members?: User[];<br>  }<br>}<br><br>export declare module &quot;@medusajs/medusa/dist/models/user&quot; {<br>  declare interface User {<br>    store_id?: string;<br>    store?: Store;<br>  }<br>}</pre><p>This informs TypeScript that the User entity now has store_id and store properties, and the Store entity has a members property. You can learn more <a href="https://www.typescriptlang.org/docs/handbook/declaration-merging.html">here</a>.</p><h4>Extend the UserRepository</h4><p>Next, create the file src/repositories/user.ts with the following content:</p><pre>import { User } from &quot;../models/user&quot;<br>import { <br>  dataSource,<br>} from &quot;@medusajs/medusa/dist/loaders/database&quot;<br>import {<br>  UserRepository as MedusaUserRepository,<br>} from &quot;@medusajs/medusa/dist/repositories/user&quot;<br><br>export const UserRepository = dataSource<br>  .getRepository(User)<br>  .extend({<br>    ...Object.assign(<br>      MedusaUserRepository, <br>      { target: User }<br>    ),<br>  })<br><br>export default UserRepository</pre><p>This imports the UserRepository from the Medusa core package as MedusaUserRepository and creates a new UserRepository that extends it but targets the new User entity.</p><h4>Create Migration for the User Entity</h4><p>Since you’re adding a new column store_id to the User entity, you must add a new migration that reflects that column in your database.</p><p>You can learn more about migrations in <a href="https://docs.medusajs.com/development/entities/migrations/overview">our documentation</a>.</p><p>First, run the following command in the root directory of your backend:</p><pre>npx typeorm migration:create src/migrations/add-user-store-id</pre><p>This will create a new file under src/migrations. The file’s name should be of the format &lt;TIMESTAMP&gt;_UserChanged.ts.</p><p>In the file, there’s a migration class with two methods: up and down. Replace the methods with the following content:</p><pre>public async up(queryRunner: QueryRunner): Promise&lt;void&gt; {<br>    await queryRunner.query(`ALTER TABLE &quot;user&quot; ADD &quot;store_id&quot; character varying`);<br>    await queryRunner.query(`CREATE INDEX &quot;UserStoreId&quot; ON &quot;user&quot; (&quot;store_id&quot;) `);<br>}<br><br>public async down(queryRunner: QueryRunner): Promise&lt;void&gt; {<br>    await queryRunner.query(`DROP INDEX &quot;public&quot;.&quot;UserStoreId&quot;`);<br>    await queryRunner.query(`ALTER TABLE &quot;user&quot; DROP COLUMN &quot;store_id&quot;`);<br>}</pre><p>Before you run the migrations, run the build command which transpiles the files under the src directory into the dist directory:</p><pre>npm run build</pre><p>Then, run the migration command:</p><pre>medusa migrations run</pre><p>This will add the new store_id column to the user table.</p><h4>Create Middleware to Register Logged-In User</h4><p>To get access to the logged-in user across your services, you need to register it through a middleware. This middleware will run on all endpoints under the /admin path, except for the /admin/auth endpoints.</p><p>You can learn more about middlewares in <a href="https://docs.medusajs.com/development/endpoints/add-middleware">our documentation</a>.</p><p>Start by creating the file src/api/middlewares/logged-in-user.ts with the following content:</p><pre>import { UserService } from &quot;@medusajs/medusa&quot;<br>import { User } from &quot;../../models/user&quot;<br><br>export async function registerLoggedInUser(req, res, next) {<br>  let loggedInUser: User | null = null<br><br>  if (req.user &amp;&amp; req.user.userId) {<br>    const userService = <br>      req.scope.resolve(&quot;userService&quot;) as UserService<br>    loggedInUser = await userService.retrieve(req.user.userId)<br>  }<br><br>  req.scope.register({<br>    loggedInUser: {<br>      resolve: () =&gt; loggedInUser,<br>     },<br>   })<br>  <br>  next()<br>}</pre><p>This retrieves the logged-in user from req.user.userId and, if available, registers it in Medusa’s dependency container under loggedInUser.</p><p>You can learn more about the dependency container and injection in <a href="https://docs.medusajs.com/development/fundamentals/dependency-injection">our documentation</a>.</p><p>Next, create the file src/api/index.ts with the following content:</p><pre>import { Router } from &quot;express&quot;<br>import configLoader from &quot;@medusajs/medusa/dist/loaders/config&quot;<br>import { <br>  registerLoggedInUser,<br>} from &quot;./middlewares/logged-in-user&quot;<br>import <br>  authenticate <br>from &quot;@medusajs/medusa/dist/api/middlewares/authenticate&quot;<br>import * as cors from &quot;cors&quot;<br><br>export default function (rootDirectory: string) {<br>  const router = Router()<br>  const config = configLoader(rootDirectory)<br><br>  const adminCors = {<br>    origin: config.projectConfig.admin_cors.split(&quot;,&quot;),<br>    credentials: true,<br>  }<br><br>  router.use(<br>    /\/admin\/[^(auth)].*/,<br>    cors(adminCors),<br>    authenticate(),<br>    registerLoggedInUser<br>  )<br><br>  return router<br>}</pre><p>This registers the middleware on all paths starting with /admin except for /admin/auth paths. Notice that you also add the authenticate middleware before the registerLoggedInUser middleware. The authenticate middleware authenticates the user and sets req.user. If not added, the registerLoggedInUser middleware will not be able to access the logged-in user.</p><p>You’ll see the middleware’s work in action when you start customizing services in the upcoming sections.</p><h4>Extend Store Service</h4><p>In this section, you’ll extend the Store service to change the logic behind retrieving a store. In the Medusa core package, it’s assumed there’s one store and so the first store is retrieved. You’ll be changing that to retrieve the store of the logged-in user.</p><p>You can learn more about extending services in <a href="https://docs.medusajs.com/development/services/extend-service">the documentation</a>.</p><p>Create the file src/services/store.ts with the following content:</p><pre>import { Lifetime } from &quot;awilix&quot;<br>import { <br>  FindConfig,<br>  StoreService as MedusaStoreService, Store, User,<br>} from &quot;@medusajs/medusa&quot;<br><br>class StoreService extends MedusaStoreService {<br>  static LIFE_TIME = Lifetime.SCOPED<br>  protected readonly loggedInUser_: User | null<br><br>  constructor(container, options) {<br>    // @ts-expect-error prefer-rest-params<br>    super(...arguments)<br><br>    try {<br>      this.loggedInUser_ = container.loggedInUser<br>    } catch (e) {<br>      // avoid errors when backend first runs<br>    }<br>  }<br><br>  async retrieve(config?: FindConfig&lt;Store&gt;): Promise&lt;Store&gt; {<br>    if (!this.loggedInUser_) {<br>      return super.retrieve(config);<br>    }<br><br>    return this.retrieveForLoggedInUser(config);<br>  }<br><br>  async retrieveForLoggedInUser (config?: FindConfig&lt;Store&gt;) {<br>    const storeRepo = this.manager_.withRepository(this.storeRepository_);<br>    const store = await storeRepo.findOne({<br>        ...config,<br>        relations: [<br>          ...config.relations,<br>          &#39;members&#39;<br>        ],<br>        where: {<br>          id: this.loggedInUser_.store_id<br>        },<br>    });<br><br>    if (!store) {<br>        throw new Error(&#39;Unable to find the user store&#39;);<br>    }<br><br>    return store<br>  }<br>}<br><br>export default StoreService</pre><p>You import the StoreService from the Medusa core package as MedusaStoreService. You then create a new StoreService class that extends MedusaStoreService.</p><p>In the class, you set the LIFE_TIME of the service to Lifetime.SCOPED. This is necessary for the service to access the registered loggedInUser. You can learn more about it in <a href="https://docs.medusajs.com/development/services/create-service#service-life-time">the documentation</a>.</p><p>You also add a new class attribute loggedInUser_ and set its value in the constructor. Notice that you wrap the initialization of loggedInUser_ in the constructor with a try-catch block to avoid errors when the loggedInUser is not registered in the Medusa container.</p><p>You then override the retrieve method. In that method:</p><ol><li>You check if the loggedInUser_ is set. If not, you call the retrieve method of the service from the core package.</li><li>If the loggedInUser_ is set, you retrieve the store using a new method retrieveForLoggedInUser. This method retrieves the store using the value of store_id of the loggedInUser_ and expands the members relation.</li></ol><p>Before you test out this method, you should create the logic that associate a new user with a new store.</p><h4>Extend the User Service</h4><p>In this section, you’ll implement the logic behind creating a store for every new user. To do this, you’ll extend the UserService from the Medusa core to override the create method.</p><p>Create the file src/services/user.ts with the following content:</p><pre>import { Lifetime } from &quot;awilix&quot;<br>import { UserService as MedusaUserService } from &quot;@medusajs/medusa&quot;<br>import { User } from &quot;../models/user&quot;<br>import { CreateUserInput as MedusaCreateUserInput } from &quot;@medusajs/medusa/dist/types/user&quot;<br>import StoreRepository from &quot;../repositories/store&quot;<br><br>type CreateUserInput = {<br>  store_id?: string<br>} &amp; MedusaCreateUserInput<br><br>class UserService extends MedusaUserService {<br>  static LIFE_TIME = Lifetime.SCOPED<br>  protected readonly loggedInUser_: User | null<br>  protected readonly storeRepository_: typeof StoreRepository;<br><br>  constructor(container, options) {<br>    // @ts-expect-error prefer-rest-params<br>    super(...arguments)<br>    this.storeRepository_ = container.storeRepository<br><br>    try {<br>      this.loggedInUser_ = container.loggedInUser<br>    } catch (e) {<br>      // avoid errors when backend first runs<br>    }<br>  }<br><br>  async create(user: CreateUserInput, password: string): Promise&lt;User&gt; {<br>    if (!user.store_id) {<br>      const storeRepo = this.manager_.withRepository(this.storeRepository_)<br>      let newStore = storeRepo.create()<br>      newStore = await storeRepo.save(newStore)<br>      user.store_id = newStore.id<br>    }<br><br>    return await super.create(user, password)<br>  }<br>}<br><br>export default UserService</pre><p>In this file you:</p><ol><li>Extend the core’s UserService which is imported as MedusaUserService.</li><li>You change the value of the LIFE_TIME attribute of the service. This is explained in the Extend Store Service section.</li><li>You add a new loggedInUser_ attribute and initialize it in the constructor.</li><li>You override the create method. In the method, you first check if the user does not have a store_id. This allows you to specifically set the store of the user in other places if necessary. This can be helpful if you’re creating a team of users in one store. If the user doesn’t have store_id set, a new store is created and the store_id property of the user is set to the ID of the new store. The user is saved then using the logic implemented in the core service.</li></ol><h4>Test Store-User Relation</h4><p>Time to test everything you’ve implemented so far. To do that, run the build and the start commands in your Medusa backend:</p><pre>npm run build &amp;&amp; npm start</pre><p>Once your Medusa backend starts, login with any admin user that you have using the <a href="https://docs.medusajs.com/api/admin#tag/Auth/operation/PostAuth">User Login endpoint</a>. If you’ve seeded your database with demo data, you should have the following login credentials:</p><pre>{<br>    &quot;email&quot;: &quot;admin@medusa-test.com&quot;,<br>    &quot;password&quot;: &quot;supersecret&quot;<br>}</pre><p>Notice that when you log in, the store_id of the user is set to null.</p><p>Then, try to get the store’s data using the <a href="https://docs.medusajs.com/api/admin#tag/Store/operation/GetStore">Get Store Details endpoint</a>. The default store will be returned, which has an empty members array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*utphK-jDHsu-ufc8" /></figure><p>Next, try to create a new user using the <a href="https://docs.medusajs.com/api/admin#tag/Users/operation/PostUsers">Create a User endpoint</a>. You should see that the new user has a set store_id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*FYAP-nh7OxuDZApD" /></figure><p>Now, try to login with your new user, then try to retrieve the store’s data using the Get Store Details endpoint as mentioned earlier. You’ll see now that a different store is retrieved than the first time. This is the store that was created for this new user. It also has the new user as part of its members array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*bGt3oCynP-QhVV_u" /></figure><p>The user-store relation is now established and ready for use. Next, you’ll be working on the product-store relation.</p><h4>Extend the Product Entity</h4><p>In this section, you’ll extend the Product entity to add a new column and relation to the Store. The process will be very similar to that of extending the User entity.</p><p>Start by creating the file src/models/product.ts with the following content:</p><pre>import { Column, Entity, Index, JoinColumn, ManyToOne } from &quot;typeorm&quot;<br>import {<br>  Product as MedusaProduct,<br>} from &quot;@medusajs/medusa&quot;<br>import { Store } from &quot;./store&quot;;<br><br>@Entity()<br>export class Product extends MedusaProduct {<br>  @Index(&quot;ProductStoreId&quot;)<br>  @Column({ nullable: true })<br>  store_id?: string;<br><br>  @ManyToOne(() =&gt; Store, (store) =&gt; store.products)<br>  @JoinColumn({ name: &#39;store_id&#39;, referencedColumnName: &#39;id&#39; })<br>  store?: Store;<br>}</pre><p>This imports the Product entity from the Medusa core package as MedusaProduct and creates a new entity Product that extends it. In the entity, you add a new column store_id and a relation store to the Store entity.</p><p>Then, in the Store entity created in src/models/store.ts, add the following relation to the entity:</p><pre>import { Product } from &quot;./product&quot;;<br>// other imports...<br><br>@Entity()<br>export class Store extends MedusaStore {<br>	// other relation...<br><br>	@OneToMany(() =&gt; Product, (product) =&gt; product?.store)<br>  products?: Product[];<br>}</pre><p>You might see some TypeScript errors in your editor now. This can be resolved by adding the products relation to the Store interface and adding a new declaration for the Product in index.d.ts:</p><pre>export declare module &quot;@medusajs/medusa/dist/models/store&quot; {<br>  declare interface Store {<br>    members?: User[];<br>    products?: Product[];<br>  }<br>}<br><br>// user declaration...<br><br>export declare module &quot;@medusajs/medusa/dist/models/product&quot; {<br>  declare interface Product {<br>    store_id?: string;<br>    store?: Store;<br>  }<br>}</pre><h4>Extend the ProductRepository</h4><p>Next, create the file src/repositories/product.ts with the following content:</p><pre>import { Product } from &quot;../models/product&quot;<br>import { <br>  dataSource,<br>} from &quot;@medusajs/medusa/dist/loaders/database&quot;<br>import {<br>  ProductRepository as MedusaProductRepository,<br>} from &quot;@medusajs/medusa/dist/repositories/product&quot;<br><br>export const ProductRepository = dataSource<br>  .getRepository(Product)<br>  .extend({<br>    ...Object.assign(<br>      MedusaProductRepository, <br>      { target: Product }<br>    ),<br>  })<br><br>export default ProductRepository</pre><p>This imports the ProductRepository from the Medusa core package as MedusaProductRepository and creates a new ProductRepository that extends it but targets the new Product entity.</p><h4>Create Migration for the Product Entity</h4><p>Since you’re adding a new column store_id to the Product entity, you must add a new migration that reflects that column in your database.</p><p>First, run the following command in the root directory of your backend:</p><pre>npx typeorm migration:create src/migrations/ProductChanged</pre><p>This will create a new file under src/migrations. The file’s name should be of the format &lt;TIMESTAMP&gt;_ProductChanged.ts.</p><p>In the file, there’s a migration class with two methods: up and down. Replace the methods with the following content:</p><pre>public async up(queryRunner: QueryRunner): Promise&lt;void&gt; {<br>    await queryRunner.query(`ALTER TABLE &quot;product&quot; ADD &quot;store_id&quot; character varying`);<br>    await queryRunner.query(`CREATE INDEX &quot;ProductStoreId&quot; ON &quot;product&quot; (&quot;store_id&quot;) `);<br>}<br><br>public async down(queryRunner: QueryRunner): Promise&lt;void&gt; {<br>    await queryRunner.query(`DROP INDEX &quot;public&quot;.&quot;ProductStoreId&quot;`);<br>    await queryRunner.query(`ALTER TABLE &quot;product&quot; DROP COLUMN &quot;store_id&quot;`);<br>}</pre><p>Before you run the migrations, run the build command which transpiles the files under the src directory into the dist directory:</p><pre>npm run build</pre><p>Then, run the migration command:</p><pre>medusa migrations run</pre><p>This will add the new store_id column to the product table.</p><h4>Extend the Product Service</h4><p>In this section, you’ll extend the product service to do two things:</p><ol><li>Change the save logic to attach the product to the logged-in user’s store.</li><li>Change the methods used to retrieve products including the list, listAndCount, and retrieve methods to retrieve the products only associated with the logged-in user’s store.</li></ol><p>Create the file src/services/product.ts with the following content:</p><pre>import { Lifetime } from &quot;awilix&quot;<br>import { <br>  ProductService as MedusaProductService, Product, User,<br>} from &quot;@medusajs/medusa&quot;<br>import { CreateProductInput as MedusaCreateProductInput, FindProductConfig, ProductSelector as MedusaProductSelector } from &quot;@medusajs/medusa/dist/types/product&quot;<br><br>type ProductSelector = {<br>  store_id?: string<br>} &amp; MedusaProductSelector<br><br>type CreateProductInput = {<br>  store_id?: string<br>} &amp; MedusaCreateProductInput<br><br>class ProductService extends MedusaProductService {<br>  static LIFE_TIME = Lifetime.SCOPED<br>  protected readonly loggedInUser_: User | null<br><br>  constructor(container, options) {<br>    // @ts-expect-error prefer-rest-params<br>    super(...arguments)<br><br>    try {<br>      this.loggedInUser_ = container.loggedInUser<br>    } catch (e) {<br>      // avoid errors when backend first runs<br>    }<br>  }<br><br>  async list(selector: ProductSelector, config?: FindProductConfig): Promise&lt;Product[]&gt; {<br>    if (!selector.store_id &amp;&amp; this.loggedInUser_?.store_id) {<br>      selector.store_id = this.loggedInUser_.store_id<br>    }<br><br>    config.select?.push(&#39;store_id&#39;)<br><br>    config.relations?.push(&#39;store&#39;)<br><br>    return await super.list(selector, config)<br>  }<br><br>  async listAndCount(selector: ProductSelector, config?: FindProductConfig): Promise&lt;[Product[], number]&gt; {<br>    if (!selector.store_id &amp;&amp; this.loggedInUser_?.store_id) {<br>      selector.store_id = this.loggedInUser_.store_id<br>    }<br><br>    config.select?.push(&#39;store_id&#39;)<br><br>    config.relations?.push(&#39;store&#39;)<br><br>    return await super.listAndCount(selector, config)<br>  }<br><br>  async retrieve(productId: string, config?: FindProductConfig): Promise&lt;Product&gt; {<br>    config.relations = [<br>      ...(config.relations || []),<br>      &#39;store&#39;<br>    ]<br><br>    const product = await super.retrieve(productId, config);<br><br>    if (product.store?.id &amp;&amp; this.loggedInUser_?.store_id &amp;&amp; product.store.id !== this.loggedInUser_.store_id) {<br>      // Throw error if you don&#39;t want a product to be accessible to other stores<br>      throw new Error(&#39;Product does not exist in store.&#39;);<br>    }<br><br>    return product<br>  }<br><br>  async create(productObject: CreateProductInput): Promise&lt;Product&gt; {<br>    if (!productObject.store_id &amp;&amp; this.loggedInUser_?.store_id) {<br>      productObject.store_id = this.loggedInUser_.store_id<br>    }<br><br>    return await super.create(productObject);<br>  }<br>}<br><br>export default ProductService</pre><p>In this file you:</p><ol><li>Extend the core’s ProductService which is imported as MedusaProductService.</li><li>You change the value of the LIFE_TIME attribute of the service. This is explained in the Extend Store Service section.</li><li>You add a new loggedInUser_ attribute and initialize it in the constructor.</li><li>You override the list and listAndCount methods to filter the retrieved products by the logged-in user’s store ID. You also ensure that the store_id attribute is retrieved as part of the product and that the store relation is expanded.</li><li>You override the retrieve method to check if the retrieved product belongs to the logged-in user’s store. If not, you throw an error that the product does not exist.</li><li>You override the create method to check if the logged-in user has a store and, if so, associate the product’s store ID with that store.</li></ol><blockquote>Notice that you didn’t implement the save mechanism as part of the repository this time. This is because the repository does not have access to the Medusa container. So, you won’t be able to access the logged-in user in it.</blockquote><h4>Test the Product-Store Relation</h4><p>You can now test the relation between the product and the store.</p><p>Start by running the build and start commands in the root of your Medusa backend:</p><pre>npm run build &amp;&amp; npm start</pre><p>Then, log in as a user who has a store as explained in the previous testing section.</p><p>After that, retrieve the available products by sending a request to the <a href="https://docs.medusajs.com/api/admin#tag/Products/operation/GetProducts">List Products</a> endpoint. You’ll see that there are no products returned, even if you previously had products in your store. This is because these products are not associated with the user’s store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*CjH_j19-zFL0wjAd" /></figure><p>Then, try creating a new product using the <a href="https://docs.medusajs.com/api/admin#tag/Products/operation/PostProducts">Create Product</a> endpoint. You’ll see that the created product has a store attribute. The id of that store is the same ID of the user’s store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*iLR9IUDoHlWm9ael" /></figure><p>If you try retrieving the list of products again, you’ll find your newly-created product in the returned array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*srbBCXB-abCkr_H_" /></figure><h4>Note About Super-Admin User</h4><p>So far in your implementation you’ve taken into accoun utsers that don’t have a set store ID. These are considered “super-admin” users. These users would be able to view all products in the store and the default store’s details.</p><p>If this logic does not work for you, make sure to change the implementation to require a store ID for a user in the different locations we’ve used it.</p><h4>What’s Next</h4><p>In this tutorial, you learned how to implement the foundation of a marketplace: having multiple stores, different users within those stores, and associating products with a store.</p><p>A marketplace has a variety of other features, each depending on your use case. Some of them are:</p><ul><li>Create order-store relation: This requires a similar implementation as what you’ve done in this tutorial with products and users. You need to extend the Order entity to include a relation to the store. You can learn more about extending entities in <a href="https://docs.medusajs.com/development/entities/extend-entity">the documentation</a>.</li><li>List orders by stores: This requires a similar implementation as what you’ve done in this tutorial with products. You need to extend the OrderService to override the methods used to retrieve orders. You can learn more about extending services in <a href="https://docs.medusajs.com/development/services/extend-service">the documentation</a>.</li><li>Associate an order to a store: This requires listening to the order.created event in a subscriber. The implementation can include creating child orders of an order if in your use case you support have products from multiple stores in one product. In this case, you’d also need to extend the order entity to create a parent-child relation. You can learn more about subscribers in <a href="https://docs.medusajs.com/development/events/subscribers">the documentation</a>.</li><li>Implement teams within a store: You can implement a team within a store by extending the Invite entity to associate it with a store ID, then associate the user created from the invite with that store ID.</li></ul><p>These are just some ideas and direction for your development of the marketplace. For further help in your development, make sure to check out the available guides in <a href="https://docs.medusajs.com/">our documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=380710a36738" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/extending-medusa-example-creating-a-marketplace-380710a36738">Extending Medusa Example: Creating a Marketplace</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices for Ecommerce Checkout Design for your Business]]></title>
            <link>https://medium.com/medusa-commerce/best-practices-for-ecommerce-checkout-design-for-your-business-924b81ca1ece?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/924b81ca1ece</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 14:14:27 GMT</pubDate>
            <atom:updated>2023-03-21T14:14:27.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Py1ydV7-323PQD5w2nG1jw.jpeg" /></figure><p>Optimizing your ecommerce checkout process is crucial to reduce cart abandonment rates, as it affects customer satisfaction and the likelihood of returns. If the checkout process is not smooth and simple, the customers may <a href="https://medusajs.com/blog/ecommerce-cart-functionality/">abandon their carts</a> without making a purchase and may not return to your ecommerce.</p><p><a href="https://medusajs.com/blog/best-practices-for-ecommerce-checkout-design/">This article</a> shares the best practices for optimizing your checkout process and boosting your sales.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=924b81ca1ece" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/best-practices-for-ecommerce-checkout-design-for-your-business-924b81ca1ece">Best Practices for Ecommerce Checkout Design for your Business</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pros and Cons of using Node.js for Ecommerce]]></title>
            <link>https://medium.com/medusa-commerce/pros-and-cons-of-using-node-js-for-ecommerce-a6f37d3f6c78?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/a6f37d3f6c78</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 18:01:02 GMT</pubDate>
            <atom:updated>2023-03-14T18:01:02.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PIjfDUqZSPnKasGt3mD_A.jpeg" /></figure><p><a href="https://nodejs.org/en/about/">Node.js</a> is a JavaScript runtime environment which developers use to build scalable network applications. You can use it in various software, including ecommerce platforms.</p><p>To deliver high performance and speed for ecommerce applications, Node.js is one of the best choices. It provides features like an event-driven, non-blocking I/O model. It also provides an extensive ecosystem of third-party modules and packages. With Node.js, it is much easier to build applications.</p><p><a href="https://medusajs.com/blog/nodejs-ecommerce/">This article</a> highlights the pros and cons of using Node.js in ecommerce. It’ll guide developers to make informed decisions about whether to use Node.js for ecommerce solutions or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6f37d3f6c78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/pros-and-cons-of-using-node-js-for-ecommerce-a6f37d3f6c78">Pros and Cons of using Node.js for Ecommerce</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The History of Ecommerce]]></title>
            <link>https://medium.com/medusa-commerce/the-history-of-ecommerce-5276e4d43378?source=rss----e38493b87934---4</link>
            <guid isPermaLink="false">https://medium.com/p/5276e4d43378</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Shahed Nasser]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 11:46:52 GMT</pubDate>
            <atom:updated>2023-03-09T11:46:52.045Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6B-1RC8d0WHU-IRgJnW-Lw.jpeg" /></figure><p>Ecommerce has evolved a lot since its start. It hasn’t always been well-designed stores with extensive features and carefully-planned user experiences. A lot of what is fundamental and basic today was revolutionary when discovered at its time.</p><p>This article goes down the memory lane of ecommerce, uncovering some old-but-gold ecommerce websites, and highlighting the main difference from ecommerce today.</p><h4>1979: Michael Aldrich and the First Attempt at Ecommerce</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*9zDxOD7v1mpn0I1_" /></figure><p>In 1979, <a href="https://www.aldricharchive.co.uk/">Michael Aldrich</a> invented online shopping through televisions. This was way before the inventions of the Internet and the World Wide Web (WWW). He invented it by connecting a modified domestic TV to a transaction processing computer through a domestic telephone line.</p><p>Michael Aldrich believed that <a href="https://en.wikipedia.org/wiki/Videotex">Videotex</a> was a revolutionary communication medium that was universally applicable and participative, and the first of its kind since the invention of the telephone.</p><p>Following his invention, <a href="https://www.aldricharchive.co.uk/internet-online-shopping">two businesses used Michael’s invention</a>: Gateshead SIS with Tesco and Bradford Centrepoint with Wm. Morrison. This allowed consumers to <a href="https://www.bbc.com/news/magazine-24091393">open their TV and choose groceries</a> from a local supermarket. The order would then be sent through the phone line to a local Tesco, where the ordered items would be packaged and sent to the consumer.</p><h4>1984: CompuServe’s Electronic Mall</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*Id4dF79ed9LCe7KN" /></figure><p><a href="https://www.youtube.com/watch?v=k-oBJml1mL0"><em>Image Source</em></a></p><p>CompuServe was one of the first businesses getting close to an ecommerce experience. It was a popular networking service that provided users with emails, message boards, and more.</p><p>In 1984, CompuServe added a service called “Electronic Mall” that allowed users to buy items <a href="https://money.howstuffworks.com/history-e-commerce.htm">from over 100 online retailers</a> through a simple CLI interface where customers could browse different vendors, product categories and even insert credit information for later purchases.</p><p>You can see a demo of it all <a href="https://www.youtube.com/watch?v=k-oBJml1mL0">here</a>.</p><h4>1992: Book Stacks Unlimited, the Amazon Predecessor</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*6NY_G0vrYU2rHYQx" /></figure><p><a href="https://www.timetoast.com/timelines/el-comercio-electronico-35fa3c79-6531-4038-97cd-48fcde70e856"><em>Image Source</em></a></p><p>Contrary to popular belief, Amazon was not the first online bookstore. Book Stacks Unlimited was created in 1992, three years before Amazon. It began as a dial-up bulletin board. They then launched the website Books.com in 1994, which was eventually <a href="https://en.wikipedia.org/wiki/Book_Stacks_Unlimited">acquired by Barnes &amp; Noble</a>.</p><p>Not only did Book Stacks Unlimited offer 500K titles, but they provided features such as editorial book recommendations, book summaries, RealAudio interviews with authors, book search, and more.</p><h4>1994: NetMarket and the First Sale on the Internet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*KhHDAw89ezXDETi6" /></figure><p><a href="https://people.apache.org/~jim/NewArchitect/webrevu/1998/05_29/strategists/05_29_98_2.html"><em>Image Source</em></a></p><p>In 1994, Dan Kohn created NetMarket, which would sell a variety of CDs and books. He then marked the <a href="https://en.wikipedia.org/wiki/NetMarket">first sale of a product over the internet using a credit card</a>: a Ten Summoner’s Tale CD by Sting.</p><p>According to the <a href="https://www.nytimes.com/1994/08/12/business/attention-shoppers-internet-is-open.html">New York Times</a>, which covered the story back then, this was the first retail transaction on the Internet using a readily available version of powerful data encryption software designed to guarantee privacy. Dan Kohn <a href="https://www.nytimes.com/1994/08/12/business/attention-shoppers-internet-is-open.html">said about the purchase</a> that “even if the N.S.A. was listening in, they couldn’t get his credit card number.”</p><h4>1994–1999: The Launch of Ecommerce Giants</h4><h4>1994: PizzaNet (PizzaHut)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*88XjoyblW4FKBp0Q" /></figure><p><a href="https://web.archive.org/web/20140123215657/https://www.pizzahut.com/assets/pizzanet/home.html"><em>Image Source</em></a></p><p>In 1994, PizzaHut created PizzaNet, their online ordering service. Not only did it allow customers to order from the menu, but it also allowed them to <a href="https://www.latimes.com/archives/la-xpm-1994-08-25-fi-31168-story.html">customize the pizza</a>.</p><p>In the skepticism of how the website might be used, the local restaurant would always call the customer to verify the order to minimize the risk of pranksters.</p><h4>1995: Amazon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*XDZ7lJ-FFTsGfRQK" /></figure><p><a href="https://www.webdesignmuseum.org/gallery/amazon-1995"><em>Image Source</em></a></p><p>Amazon launched in 1995 as a book store. Although the design wasn’t too appealing, there were features that were advanced for its time: a virtual shopping cart, secure way of entering credit card details, an internal search engine, product reviews, and more.</p><p>In the very beginning, Amazon’s engineers used <a href="https://en.wikipedia.org/wiki/C_(programming_language)">C</a> to code a lot of the features of the website, and used <a href="https://en.wikipedia.org/wiki/Berkeley_DB">Berkeley DB</a> to store the website’s data.</p><h4>1996: eBay</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*NYHhV2pYRkrQAo85" /></figure><p><a href="https://www.webdesignmuseum.org/gallery/ebay-1996"><em>Image Source</em></a></p><p>eBay (initially Auction Web) was launched in 1996. It was one of its kind, being the first online auction website providing a <a href="https://www.cs.brandeis.edu/~magnus/ief248a/eBay/history.html">person-to-person marketplace</a>. Buyers would present their products, and customers bid on the items to eventually purchase it.</p><p>eBay was free of charge at the start. However, as their traffic hugely increased, <a href="https://en.wikipedia.org/wiki/EBay">eBay’s founders were informed</a> that they needed to upgrade their hosting account. This led them to take commissions on bids to fund the website.</p><h4>1997: Apple</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*gLHMXroI5gHeWkfI" /></figure><p><a href="https://www.versionmuseum.com/history-of/apple-website"><em>Image Source</em></a></p><p>Steve Jobs returned to Apple in 1997. His first line-of-action was to improve Apple’s presence in the ecommerce world. Apple launched their new-and-improved ecommerce website at the end of 1997 aimed at <a href="https://en.wikipedia.org/wiki/Apple_Store">improving customer experience</a>.</p><h4>1998–1999: Nike</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*gak5csHDm_5urzO_" /></figure><p><a href="https://theecommmanager.com/ecommerce/ecommerce-sites-from-history-old-screenshots/"><em>Image Source</em></a></p><p>Nike created their first website in 1997. However, it was mainly focused on teaching their consumers more about Nike and their products, rather than selling these products online.</p><p>In 1998, the Nike website improved to provide consumers the ability to <a href="https://www.shoepalace.com/blogs/all/the-history-of-nike">customize their own Nike shoes</a>. It wasn’t until 1999 that Nike moved from editorial content to an online store.</p><h4>2000–2005: Dot-Com Crash</h4><p>In the 1990s, the Internet garnered heavy attention and adoption. Web-based startups gained a lot of funding, and all companies suddenly needed to “move to the internet”. Later followed what is now known as the Dot-Com Crash in March 2000 where the Nasdaq index slipped ~77% over less than three years.</p><p>The dot-com crash took down many ecommerce and internet-based companies that gained success during the 1990s. This affected even big companies like Amazon. Still, some companies like <a href="https://www.itbusiness.ca/news/how-ebay-canada-survived-the-dot-com-bust/5053">eBay thrived despite the headwinds</a>.</p><h4>SnowDevil and Shopify</h4><p>In 2004, SnowDevil was launched, which ended up being <a href="https://producthabits.com/shopify-grew-snowboard-shop-10b-commerce-ecosystem/">the spark that ignited Shopify</a>. Tobias Lütke and Scott Lake wanted to sell snowboards online, but couldn’t find a software that would help them do that.</p><p>They initially used a variety of tools and services such as Miva, OsCommerce, and Yahoo stores. However, they frequently ran into trouble when trying to bring their vision to life. <a href="https://signalvnoise.com/posts/2378-qa-with-tobias-ltke-of-shopify">According to Lütke</a> they had a “great CSS-based layout done with all these new fanged ‘web standards’”. However, the lack of customization capability that Yahoo provided barely allowed him to change the background color of the top frame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*au-H5wtixLpPLyPL" /></figure><p>So, Lütke and Lake set out to create a solution that would not only solve their problem, but solve the problems of businesses across the globe. They built Shopify in 2007 and transformed SnowDevil to a Shopify demo store, bringing their vision to life.</p><p>Shopify now powers over <a href="https://trends.builtwith.com/shop/Shopify">4.5 million websites</a> worldwide.</p><h4>Note on 2000s Designs</h4><p>When looking back at some of the designs from the early 2000s, you’ll notice that there was a significant advancement from the HTML, almost only text and disarrayed images design that dominated that 1990s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*2Wn1SWyN2HrUTThn" /></figure><p><a href="https://www.webdesignmuseum.org/timeline/amazon-2001"><em>Image Source</em></a></p><p>Even though the design was still clunky and crammed, there was a clear usage of layouts and different colors. Ecommerce websites at the time also started using some elements that are now basics to ecommerce, such as a navigation menu and a sidebar for categories.</p><p>During that period, tech giants like Amazon and eBay continued to innovate with new features that are now core ecommerce features. Amazon added features like <a href="https://press.aboutamazon.com/2003/10/amazon-com-announces-sales-impact-from-new-search-inside-the-book-feature">Search Inside the Book</a>, allowing customers to search for words inside books. eBay also added a Live Chat feature to provide support for customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*XFv7179SOXNK5PBh" /></figure><p><a href="https://www.webdesignmuseum.org/timeline/ebay-2002"><em>Image Source</em></a></p><h4>2006–2010: Rise of Ecommerce Platforms</h4><p>After the dot-com crash, ecommerce companies and stores steadily regained momentum, and new ecommerce platforms emerged.</p><p>In 2007, Magento was created by Varien, and it was later <a href="https://en.wikipedia.org/wiki/Magento">acquired by eBay</a>. In the beginning, Varien were building their platform on osCommerce. However, they found it <a href="https://www.icecubedigital.com/blog/what-is-magento-its-history-facts-usage-more/">incapable of accommodating all the features</a> and functionalities they had in mind. So, they decided to build a new open-source solution from scratch.</p><p>With the passing years, Magento grew to be one of the top open source ecommerce platforms at its time. In its first year, it was downloaded over 500K times. Magento’s popularity is due to the customizability capabilities it provided, as well as its open source nature. This allowed businesses to break away from proprietary solutions and take full ownership of their store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*MuB-5Zd0DkyZRUWi" /></figure><p><a href="https://commons.wikimedia.org/wiki/File:Magento_Admin_Panel_screenshot.jpg"><em>Image Source</em></a></p><p>BigCommerce was launched in 2009, after its founders met in a <a href="https://signalvnoise.com/posts/2727-bootstrapped-profitable-proud-bigcommerce">programming online chat</a>. BigCommerce initially wanted to provide a shopping-cart-only solution called Interspire. However, their consumers found it difficult to manually find, install, and update their software on a server, which lead to the change from Interspire to BigCommerce.</p><p>BigCommerce gained popularity among businesses that didn’t want the hassle of handling the technical parts of ecommerce, but still wanted to have the customizability options that allowed them to grow and scale. By 2011, BigCommerce was powering almost 10K stores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*krppEIlQugwq-blo" /></figure><p><a href="https://signalvnoise.com/posts/2727-bootstrapped-profitable-proud-bigcommerce"><em>Image Source</em></a></p><h4>2010–2020: The Platform Puzzle</h4><p>As the 2010s started, ecommerce saw a rapid uptake, and over the decade, <a href="https://tblocks.com/how-e-commerce-has-changed-over-the-last-10-years">global ecommerce sales grew 8-fold</a>.</p><p>During this period, ecommerce saw a lot of shifts in user behavior as new platforms emerged, effectively reshaping how users interacted with brands online.</p><h4>Design Changes</h4><p>The 2010s show a big improvement in the design and functionalities that ecommerce stores provided. Many of the features that were carefully implemented in the 1990s and early 2000s became fundamentals that every ecommerce store had.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*8-7Mg7TstP4psk-8" /></figure><p>With more businesses moving towards the ecommerce landscape, they each needed to stand out through unique branding and design. Ecommerce platforms that started emerging in the late 2000s provided more customizable options for the storefront.</p><p>This also lead to newer technologies, concepts, and approaches rising that would reshape websites in general, including ecommerce storefronts. Concepts like <a href="https://www.netlify.com/press/unite-modern-web-ecosystem-at-jamstack-conf-2022">Jamstack</a>, coined by Netlify in 2015, and the launch of static-site generator frameworks like Gatsby or Next.js, allowed businesses to have more control over designing their storefront and provide a better user experience.</p><h4>Mobile Commerce</h4><p>The 2010s also marked the rise of mobile commerce. Ecommerce businesses started rolling out mobile apps that allowed their consumers to access the same web functionalities from their smartphones. This went through its own timeline of evolution, starting from a simple design and advancing to more sleek and user-experience tailored design.</p><p>This elevated the development of ecommerce stores from only catering to a website to multiple platforms. Developers needed to design and build APIs within their existing systems to cater for mobile development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*Xx9hhAXWTZKvq_qA" /></figure><p><a href="https://www.talkandroid.com/43842-ebay-app-gets-updated-you-can-now-sell-items-from-your-phone/"><em>Image Source</em></a></p><h4>Social Commerce</h4><p>In the mid 2010s, social commerce started emerging. In 2015, Pinterest rolled out its first shopping capabilities through <a href="https://techcrunch.com/2015/06/02/pinterest-unveils-buyable-pins-a-way-to-purchase-things-directly-from-pinterest/">Buyable Pins</a>. Users were able to purchase products from Pinterest. <a href="https://www.cnbc.com/2018/09/17/instagram-launches-new-shopping-features.html">Instagram also announced Instagram Shop in 2018</a> which allows users to browse and purchase products from businesses without leaving Instagram.</p><p>With the introduction of social commerce, businesses had now another platform to attract new customers. Businesses invested in social marketing strategies to ensure potential customers can discover their products through these platforms and, in turn, convert to purchasing customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*FZAwwj5iG-Bi3cDb" /></figure><p><a href="https://techcrunch.com/2015/06/02/pinterest-unveils-buyable-pins-a-way-to-purchase-things-directly-from-pinterest/"><em>Image Source</em></a></p><h4>Stripe and the Emergence of New Ecommerce Infrastructure</h4><p>While ecommerce platforms evolved, a new type of infrastructure started to emerge to further improve the commerce experience. From analytics and backend-focused tools, to new solutions solving complicated issues related to areas such as payment and distribution.</p><p>The brothers Patrick and John Collison founded one of the most notable infrastructure solutions in this new commerce era in 2010. Through their side projects, they found it difficult to accept payment online and wanted to fix that. So, they developed a quick solution in <a href="https://www.zippia.com/stripe-careers-39818/history/">2 weeks</a> and were able to process their first transaction. After making several iterations over the next few months, they launched Stripe under the name dev/payments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*76-9fr2l7uOWn_SC" /></figure><p><a href="https://vator.tv/news/2016-12-29-when-stripe-was-young-the-early-years"><em>Image Source</em></a></p><p>As indicated by its initial name, Stripe was aimed towards developers at first. The founders then realized that Stripe solves problems the entire internet faced. <a href="https://www.fastcompany.com/1813087/inside-stripe-paypal-competitor-backed-paypal-founders-peter-thiel-elon-musk">According to Patrick</a>, existing solutions like PayPal and Google Checkout were “these confusing things,” and they wanted to solve what these existing solutions couldn’t.</p><p>Stripe reshaped the payment landscape, making it easy for anyone to start selling online, while providing a payment infrastructure that facilitated building custom setups. A lot of startups afterward took it upon themselves to cover other areas of the ecommerce infrastructure with similar developer-first approaches.</p><h4>2020s and Ecommerce Modularization</h4><p>The ecommerce landscape has evolved to include not only web as a sales channel, but also mobile apps, social apps, and more. This spawned the need for ecommerce solutions that provide <a href="https://medusajs.com/blog/why-headless-commerce-is-the-perfect-solution-for-omnichannel-support/">omnichannel</a> support, frontend flexibility, and an extensive feature offering.</p><p>To accommodate those needs, the 2020s saw new and existing ecommerce solutions start to adopt <a href="https://medusajs.com/blog/headless-architecture/">headless</a> and <a href="https://medusajs.com/blog/composable-commerce/">composable</a> architectures. As the demands for ecommerce heavily evolved, the previous methods used to create ecommerce applications, which were initially monolithic and tightly coupled, are now limiting. Developers now seek modular solutions that are less rigid and open to customizations. This would remove the restrictions on their businesses and the need for hacky workarounds.</p><p>The rise of point solutions that focus on specific domains within ecommerce has enabled this move towards modular solutions. Developers can combine these services and create a modern product stack that meets businesses’ exact requirements without compromising scalability.</p><p>As ecommerce, and the technology sector as a whole, is a rapidly growing landscape, new trends will continue to rise and fall. However, one thing remains consistent throughout the years: businesses will continue to strive to exceed their current potential. To ensure they can innovate and build unique experiences, ecommerce solutions must adopt a modular approach ensuring scalability and flexibility.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5276e4d43378" width="1" height="1" alt=""><hr><p><a href="https://medium.com/medusa-commerce/the-history-of-ecommerce-5276e4d43378">The History of Ecommerce</a> was originally published in <a href="https://medium.com/medusa-commerce">Medusa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>