GithubHelp home page GithubHelp logo

gatsby-starter-vendure's Introduction

Gatsby Starter Vendure

Gatsby starter for creating an eCommerce site using Vendure eCommerce api. Currently work in progress.

This starter adapts an existing Gatsby eCommerce starter which adapts an existing NextJS eCommerce starter for GatsbyJS.

Demo: WIP

Getting started

Install this starter (assuming Gatsby is installed) by running from your CLI:

gatsby new gatsby-store https://github.com/kencruz/gatsby-starter-vendure

Running in development

npm run develop

Additional Setup

A vendure server is needed for this store to run successfully.

Create a .env.development and .env.production file at the project root with your vendure shop api url.

VENDURE_SHOP_API=

Features

  • Vendure eCommerce API
  • React 16
  • PWA (includes manifest.webmanifest & offline support)
  • Eslint & Prettier
  • Styled Components
  • Google Analytics - (you enter the tracking-id)
  • Semantic-UI
  • Authentication via Vendure (Login and Register)
  • Stripe checkout

gatsby-starter-vendure's People

Contributors

kencruz avatar

Watchers

James Cloos avatar  avatar

gatsby-starter-vendure's Issues

"Invariant violation" error while running npm run develop

Error appears when running npm run develop. It appears after starting webpack server.

There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html Invar
iant Violation:

Error: Invariant Violation:
fetch is not found globally and no fetcher passed, to fix pass a fetch for
your environment like https://www.npmjs.com/package/node-fetch.
For example:
import fetch from 'node-fetch';
import { createHttpLink } from 'apollo-link-http';
const link = createHttpLink({ uri: '/graphql', fetch: fetch });

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.