A Gatsby storefront for a Shopify store. Built as a learning project for Shopify and Gatsby integration.
This project is bootstrapped using gatsby-starter-ts
To start the project locally, run:
- Set up a Shopify store and get the API keys. I wrote a guide on how to do this here.
- Rename the
.env.example
file to.env.development
and add the API keys. - Run
yarn
to install dependencies. - Run
yarn develop
to start the application in development mode athttp://localhost:8000
.
- Node.js >= 14.17
- Yarn 1 (Classic)
.husky
— Husky configuration and hooks.src
— Application source code, including pages, components, styles.
yarn dev
— Starts the application in development mode athttp://localhost:8000
.yarn build
— Compile your application and make it ready for deployment.yarn serve
— Serve the production build of your siteyarn clean
— Wipe out the cache (.cache
folder).yarn type-check
— Validate code using TypeScript compiler.yarn lint
— Runs ESLint for all files in thesrc
directory.yarn format
— Runs Prettier for all files in thesrc
directory.yarn commit
— Run commitizen. Alternative togit commit
.
This project is licensed under the MIT License - see the LICENSE.md file for more information.
- Check for Out of Stock Items and disable Add to Cart button with
useEffect
.