Here you can find the demo link:
- Clone the project
git clone https://github.com/AlanGiavino/Ecommerce-Next.js.git
- Go to the project directory
cd ecommerce/
- Install dependencies
npm install
-
Create a .env file
-
Request an API key from TMDB and them add it to the .env file
NEXT_PUBLIC_SANITY_TOKEN= YOUR SANITY TOKEN
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = YOUR STRIPE TOKEN
NEXT_PUBLIC_STRIPE_SECRET_KEY = YOUR STRIPE SECRET TOKEN
- Open another console
cd ecommerce/
cd sanity_ecommerce/
- Install dependencies
npm install
- Start the server ecommerce/
npm start