Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences.
⚠️ This storefront is deprecated and may not work with the latest versions of Medusa. It's recommended to integrate Contentful in your storefront manually.
Prerequisites: This starter works with
medusa-starter-contentful
. Make sure to have this starter installed and running.
-
Install the storefront
gatsby new medusa-contentful-storefront https://github.com/medusajs/medusa-contentful-storefront/edit/master/README.md
-
Setup your environment variables
mv .env.template .env
Go to your Contentful space, then click Settings > API Keys > Add API key. Copy the value in the field "Content Delivery API - access token" and paste it into your
.env
together with your Contentful space id:CONTENTFUL_SPACE_ID=***** CONTENTFUL_ACCESS_TOKEN=**************
-
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 Contentful
-
Learn more about Gatsby
Website | Notion Home | Twitter | Docs