Skip to content

Codebrahma/gatsby-ecommerce-pwa

Repository files navigation

Gatsby-Ecommerce-PWA

A Ecommerce commerce Progressive Web App built with Gatsby JS and React JS.

Are you offline? No worries, You can still view your favourite products, Add them to cart and proceed till checkout. Pay when you are back online.

View the Live App

Install

Make sure you install all the dependencies, use

yarn install

For Development ,

Add .env.development file with variables given in .env.sample

SHOPIFY_STORE_NAME='STORE_NAME'
SHOPIFY_STORE_ACCESS_TOKEN='STORE_ACCESS_TOKEN'

For Production,

Add .env.production with

SHOPIFY_STORE_NAME='PRODUCTION_STORE_NAME'
SHOPIFY_STORE_ACCESS_TOKEN='PRODUCTION_STORE_ACCESS_TOKEN'

.env.development and .env.production will be ignored by git.

Also make sure you have the gatsby CLI, use

npm install --global gatsby-cli

To start the project use

npm run develop

Want to develop your own gatsby site? Visit Gatsby Docs for helpful information.

App Walkthrough

gatsby

Inspiration

1. Here are the key benefits of Gatsby JS

  • Automatic routing based on your directory structure. No need to include additional code for configuring the router
  • HTML code is generated -side
  • Pre-configured Webpack-based build system
  • Easily extensible by plugin ecosystem
  • Optimized for speed. Gatsby loads only critical parts so that your site loads as fast as possible. Once loaded, Gatsby prefetches resources for other pages so that clicking around the site feels incredible fast.
  • Easy data integration from sources like CMSs, SaaS services, APIs, databases, file system

Curious to explore about it. Best place is to start with Gatsby Docs

2. Progressive Web App (PWA)

  • Reliable - Load instantly and never show the downasaur, even in uncertain network conditions.
  • Fast - Respond quickly to user interactions with silky smooth animations and no janky scrolling.
  • Engaging - Feel like a natural app on the device, with an immersive user experience.