GithubHelp home page GithubHelp logo

frontend-mayloc-store's Introduction

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

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.

๐Ÿš€ 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!

frontend-mayloc-store's People

Watchers

James Cloos avatar @nvd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.