This is a sample an Ecommerce project using Sanity.io + Stripe.
How to start Sanity Studio?
- Install @sanity/cli.
- cd into studio folder. Copy the .env.example and rename to .env.development. Insert Sanity.io projectID and dataset.
- run
yarn
- run
sanity start
to start the studio.
How to start the NextJS project?
- Copy the .env.example and rename to .env.local. Insert Sanity.io projectID and dataset and the API token.
- run
pnpm install
to install the npm packages - run
pnpm dev
to start the project.