GitXplorerGitXplorer
m

gatsby-starter-medusa

public
80 stars
51 forks
9 issues

Commits

List of commits on branch main.
Verified
7646c316389d911d3e97f5b3f37ad5f6051f371e

chore: added deprecation warning to README

sshahednasser committed a year ago
Verified
0647e8895144226bb03b714a6f652cd2ab4fbb28

Update README.md

sshahednasser committed a year ago
Verified
c9812de21b5f0d94969582e1dfec5185c4518912

Update README.md

sshahednasser committed a year ago
Verified
c95610cb04265860de5234ce64aa7a90bcba4f6c

chore: added deprecation warning to README

sshahednasser committed a year ago
Verified
6feccb28a4acd7965acae3c86abbf76afe1ee7e5

Merge pull request #25 from medusajs/feat/deploy-to-netlify

kkasperkristensen committed 2 years ago
Verified
c87a61acd6119bd9300df0a7c74f5eef2eda7867

Added button to README

sshahednasser committed 2 years ago

README

The README file for this repository.

Medusa

Medusa Gatsby Starter

Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences.

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

⚠️ This storefront is deprecated and may not work with the latest versions of Medusa. It's recommended to use the Next.js storefront instead.

🚀 Quick Start

Deploy to Netlify

  1. Create a new Gatsby project
  npx gatsby new my-medusa-storefront https://github.com/medusajs/gatsby-starter-medusa

  # or

  git clone https://github.com/medusajs/gatsby-starter-medusa.git my-medusa-storefront
  1. Install dependencies
  cd my-medusa-storefront
  yarn
  1. Link to your backend

In the folder my-medusa-storefront you should have a .env.template file with the following content:

GATSBY_MEDUSA_BACKEND_URL=http://localhost:9000

Before you can start developing your site you first need to copy this file into a new file named .env.development.

mv .env.template .env.development

Per default your Medusa server should be running on localhost:9000, but if you have changed this you will then need to replace GATSBY_MEDUSA_BACKEND_URL with the URL of your Medusa server.

GATSBY_MEDUSA_BACKEND_URL=<link to your server>
  1. Start development

You should now be able to start developing your site.

yarn start
  1. Open the source code and start editing!

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

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the my-medusa-starter directory in your code editor of choice and edit src/pages/index.jsx. Save your changes and the browser will update in real time!