Mercora is a headless, composable commerce platform for brands that want a flexible backend, a modern storefront, and room to grow.
This repository contains three apps:
medusa/: the commerce backend and admin surfacestorefront-vinext/: the primary customer-facing storefrontstorefront-nuxt/: a separate Nuxt storefront/template for alternative frontend work
The root workspace uses Nx only to orchestrate medusa/ and storefront-vinext/. storefront-nuxt/ is kept separate and is not part of the root Nx project graph.
- Catalog, checkout, orders, pricing, and promotions
- Medusa-based commerce APIs
- Custom brand and CMS modules in the backend
- A Vinext/React/Vite/Tailwind storefront with Medusa SDK and Stripe integration
- A Nuxt 4 storefront option for teams that prefer Vue/Nuxt
.
├── medusa/ # Backend commerce core
├── storefront-vinext/ # Primary storefront
├── storefront-nuxt/ # Separate Nuxt storefront/template
├── package.json # Root Nx scripts
└── nx.json # Nx workspace config
- Node.js 20 or newer for the root workspace and
medusa/ - Yarn 3.x for
medusa/andstorefront-vinext/ - pnpm 10.x for
storefront-nuxt/
Install dependencies per app:
npm install
cd medusa && yarn install
cd storefront-vinext && yarn install
cd storefront-nuxt && pnpm installRoot Nx scripts run the backend and primary storefront together:
npm run dev
npm run build
npm run lintRoot scripts:
npm run devrunsmedusaandstorefront-vinextin parallelnpm run buildbuildsmedusaandstorefront-vinextin parallelnpm run lintruns linting forstorefront-vinext
cd medusa
yarn dev
yarn build
yarn start
yarn seed
yarn test:unit
yarn test:integration:http
yarn test:integration:modulescd storefront-vinext
yarn dev
yarn build
yarn start
yarn lint
yarn analyzecd storefront-nuxt
pnpm dev
pnpm build
pnpm preview
pnpm lint
pnpm typecheckThe apps rely on environment variables for backend and storefront integration. Common values include:
MEDUSA_BACKEND_URLNEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEYNEXT_PUBLIC_BASE_URLNEXT_PUBLIC_DEFAULT_REGIONNEXT_PUBLIC_STRIPE_KEY
Do not commit populated .env files.
medusa/is the commerce core and contains the backend business logic.storefront-vinext/is the main storefront for this repo.storefront-nuxt/is available as a separate frontend path, not as part of the root Nx workflow.