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.
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.
Clone the project
git clone https://github.com/EssDeeJay/shopify-next-headless.gitGo to the project directory
cd my-projectInstall dependencies
npm installStart the server
npm run dev- 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.
React, Next.js, TailwindCSS, @headlessui/react, Shopify, @shopify/hydrogen-react