Skip to main content

Quickstart: Gatsby

Create a new Gatsby project using the Medusa starter template

gatsby new my-medusa-store https://github.com/medusajs/gatsby-starter-medusa

Set up environment variables Navigate into your projects directory and get your environment variables ready:

mv .env.template .env.development

Install dependencies Use your favourite package manager to install dependencies:

npm install

Start developing. Start up the local server:

npm run start

Your site is now running at http://localhost:8000!

Edit src/pages/index.js to see your site update in real-time!

Learn more about Medusa

Learn more about Gatsby