Skip to content

shopify headless practice storefront with google idx as the development studio

Notifications You must be signed in to change notification settings

EssDeeJay/shopify-next-headless

Repository files navigation

Shopify Next.js Headless Storefront - React

Storefront built using own stack, using next.js as a front end framework. Shopify as a backend. This code utilizes storefront API to make the calls to the shopify.

Getting Started

Get Started by installing the necessary dependencies required to run this project.

npm install 

Generate .env.local in root folder and include following credentials.

PUBLIC_STORE_DOMAIN = 'YOUR_STORE_DOMAIN'
PUBLIC_STOREFRONT_API_TOKEN = 'PUBLIC_STOREFRONT_TOKEN'
PRIVATE_STOREFRONT_API_TOKEN = 'PRIVATE_STOREFRONT_TOKEN'

To generate tokens, you will need to install headless channel in shopify admin and create a new project and give the necessary permissions to your project and copy the credentials you need.

Run Locally

Clone the project

  git clone https://github.com/EssDeeJay/shopify-next-headless.git

Go to the project directory

  cd my-project

Install dependencies

  npm install

Start the server

  npm run dev

Features

  • Dynamic Product & Collection Route
  • Cart Context and Cart Drawer Support that updates instantly
  • Featured Collections on homepage
  • Preline Product Page Accordions [Dynamic Product Accordions includes Specifications, Instructions Manuals, etc.]
  • Product Page Key Features

I will be updating more features regularly as i make the progress. Please feel free to share feedback. The project currently is under development. Things like product page detail component can be diffferent per project. Feel free to contribute.

Tech Stack

React, Next.js, TailwindCSS, @headlessui/react, Shopify, @shopify/hydrogen-react

About

shopify headless practice storefront with google idx as the development studio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages