dante

Let's try some E-Commerce

Stars
9
Committers
1

dante

Let's try some E-Commerce.

Prerequisities

  1. Install Node.js >=18.7.0 - https://Node.js.org/en/download/. Recommended through NVM.
  2. Install IDE, recommended Visual Studio Code.
  3. Netlify account.
  4. Stripe account.

Setup

  1. Setup .env file with Stripe credentials in format
STRIPE_PUBLISHABLE_KEY="put stripe publishable key here"
STRIPE_PRODUCT_PRICE_ID="put procut price id herere"
  1. Install dependencies
npm install
  1. Run local, dev build:
npm run develop
  1. Run production build:
npm run build

Troubleshooting

If changes seem to not be reflected in the build, try cleaning cache using

npm run clean

VSCode recommended plugins

Useful links

Stripe

Netlify

GatsbyJS

E-Commerce

API

Google Analytics

DevOps

CMS