A Shopping Cart built with TypeScript, Tailwind CSS, Headless UI, Next.js, React.js, Shopify Hydrogen React,... and Shopify Storefront GraphQL API.
These are my experiences when I have been working on this project:
If you like this project, hit the STAR button to bookmark it ⭐️
Clone the source code into your computer.
git clone [email protected]:smartMinion221/Shopify--React-Next-.git
Install the project's dependencies.
npm install
First, you need to set the below environment variables in the .env
file or your deployment platforms.
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN
NEXT_PUBLIC_SHOPIFY_STOREFRONT_API_TOKEN
NEXT_PUBLIC_SHOPIFY_STOREFRONT_API_VERSION
You can follow the Shopify Storefront GraphQL API documentation to get Storefront API information.
Develop the project in development mode.
npm run dev
Build the project in production mode.
npm run build
Start the project in production mode.
npm run start
Analyze the code to find problems with eslint
and prettier
.
npm run lint
Automatically fix problems.
npm run fix
To speed up your productivity, you can install these extensions: