Skip to content

Marktawa/medusa-stackbit-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Build an ecommerce site using Medusa, Next.js and Stackbit

This repository serves as a code container for the tutorial with the above title.

TUTORIAL LINK

App Demo

App Demo

Prerequisites

  • Node v14.x.x up to Node v18.x.x (LTS)
  • Git

Getting Started

  • Clone the repo
git clone https://github.com/Marktawa/medusa-stackbit-app.git
  • Change directory
cd medusa-stackbit-app

Medusa Setup

  • Install the Medusa CLI
npm install -g @medusajs/medusa
  • Change directory to medusa-store.
cd medusa-store
  • Install dependencies
npm install
  • Run the Medusa server
medusa develop

Your local Medusa Server will run on port 9000

Next.js Setup

  • Change directory to my-stackbit-site directory
cd my-stackbit-site
  • Install dependencies
npm install
  • Run the Next.js development server
npm run dev

Your local Next.js dev server will run on port 3000

stackbit Setup

  • Install Stackbit CLI
npm install -g @stackbit/cli
  • Run Stackbit development server
cd my-stackbit-site
stackbit dev

Your local Stackbit dev server will run on port 8090


For detailed instructions, read the blog.

Authors

Extra