Giter Site home page Giter Site logo

next-shopify-storefront-react's Introduction

๐Ÿ› Next Shopify Storefront

This was bootstrapped with React, TypeScript, Next and Material UI.

Experience

These are my experience when I have been working on this project:

  • Using Emotion to Write Component-scoped Styles.
  • Using TypeScript to Create Type-safe React Components.
  • Using React Query to Fetch, Cache and, Update Data.
  • Using Next.js for Static Generation and Server-Side Rendering.
  • Using Next SEO to Manage Search Engine Optimization More Easily.
  • Using Material UI to Create a Beautiful User Interface.
  • Using Swiper to Create Beautiful, Touchable, Responsive Sliders.
  • Using React Use Hooks to Speed Up Component Development.
  • Using CSS Media Queries to Create a Mobile-First and Responsive Design.
  • Using GraphQL Request to Interact with Shopify Storefront GraphQL API.
  • Using GraphQL Code Generator to Generate TypeScript GraphQL Clients.
  • Using ESlint, Prettier to Follow Next.js Best Practices.

If you like this project, hit the STAR button to bookmark it โญ๏ธ

Installation

Clone the source code into your computer.

git clone [email protected]:fredcarterwolf/shopify-react-nextjs.git

Install the project's dependencies.

yarn install

Usage

First, you need to set the below environment variables in the .env file or your deployment platforms.

  • NEXT_PUBLIC_SHOPIFY_STOREFRONT_API_ENDPOINT
  • NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN

You can follow the Shopify Storefront GraphQL API documentation to get Storefront's API Endpoint and Access Token.

Develop

Develop the project in development mode.

yarn dev

Build

Build the project in production mode.

yarn build

Start

Start the project in production mode.

yarn start

Lint

Analyze the code to find problems with eslint and prettier.

yarn lint

Automatically fix problems.

yarn fix

Visual Studio Code Extensions

To speed up your productivity, you can install these extensions:

next-shopify-storefront-react's People

Contributors

meticulousfan avatar

Watchers

 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.