Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences.
Prerequisites: To use the starter you should have a Medusa server running locally on port 9000. Check out medusa-starter-default for a quick setup.
-
Setting up the environment variables
Navigate into your projects directory and get your environment variables ready:
cd gatsby-starter-medusa/ mv .env.template .env.development
If using Stripe add your Stripe API key to your
.env.development
GATSBY_STRIPE_KEY=pk_test_something
-
Install dependencies
Use Yarn to install all dependencies.
yarn
-
Start developing.
Start up the local server.
yarn start
-
Open the code and start customizing!
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