This repository serves as a code container for the tutorial with the above title.
- Node v14.x.x up to Node v18.x.x (LTS)
- Git
- Clone the repo
git clone https://github.com/Marktawa/medusa-stackbit-app.git
- Change directory
cd medusa-stackbit-app
- 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
- 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
- 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.
- You are welcome to make issues and feature requests.