E-Commerce Store Development on Medusa.js

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
E-Commerce Store Development on Medusa.js
Complex
from 2 weeks to 3 months
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Medusa.js E-Commerce Development

Medusa — Node.js open-source e-commerce framework, Shopify alternative for developers. Version 2.x (2024) completely rewritten: modular architecture via Medusa Modules, new IoC container, improved workflow-engine. Stack: TypeScript, Node.js 20+, PostgreSQL, Redis.

Medusa 2.x Architecture

Unlike monolithic v1, Medusa 2.x based on independent modules:

┌─────────────────────────────┐
│ Medusa Application          │
├─────────────┬───────────────┤
│ HTTP Layer  │ Workflows │   │
├─────────────┴───────────────┤
│ Module Container            │
├──────┬───────┬────────┬─────┤
│ Product Module │ Order │ Cart│
├──────┴───────┴────────┴─────┤
│ Infrastructure Layer        │
│ PostgreSQL + Redis + S3     │
└─────────────────────────────┘

Each module — independent package with own schema, services, events. Allows replacing parts.

Products and Variants

Product structure via hierarchy: Product → ProductVariant → Price:

const product = await productModuleService.createProducts({
  title: 'Winter Jacket',
  handle: 'jacket-winter',
  status: ProductStatus.PUBLISHED,
  options: [
    { title: 'Size', values: ['S', 'M', 'L', 'XL'] },
    { title: 'Color', values: ['Black', 'Blue'] },
  ],
  variants: [
    {
      title: 'S / Black',
      sku: 'JACKET-S-BLACK',
      options: { Size: 'S', Color: 'Black' },
      prices: [{ amount: 299900, currency_code: 'rub' }],
    },
  ],
});

Workflows and Business Logic

Workflows — sagas with compensation and rollback:

const validateInventoryStep = createStep(
  'validate-inventory',
  async ({ variantId, quantity }, context) => {
    const inventoryService = context.container.resolve('inventory');
    const available = await inventoryService.retrieveAvailableQuantity(variantId);
    if (available < quantity) throw new Error(`Insufficient: ${available} available`);
    return new StepResponse({ available });
  }
);

export const customOrderWorkflow = createWorkflow(
  'custom-order-workflow',
  function (input) {
    const { available } = validateInventoryStep(input);
    return new WorkflowResponse({ available });
  }
);

Payment Gateways

Supports Stripe, PayPal, custom providers extending AbstractPaymentProvider.

Deployment

Docker compose with PostgreSQL, Redis, worker process:

services:
  medusa:
    build: .
    environment:
      NODE_ENV: production
      DATABASE_URL: postgresql://user:pass@postgres:5432/medusa
    command: npx medusa db:migrate && npx medusa start
  medusa-worker:
    build: .
    environment:
      MEDUSA_WORKER_MODE: worker
    command: npx medusa start

Timeline

  • Basic store: Medusa + Next.js starter: 3–4 weeks
  • Custom modules, CRM/ERP integrations: 8–14 weeks
  • Headless enterprise multi-region: 16–24 weeks