A full-stack E-commerce app using NextJS, React, TailwindCSS, Zustand, and Stripe API.
A ecommerce store application built with NextJS 13.4.7
- Users can view products on the store
- Users can share URLs to products
- Users can add products to cart
- Users can purchase the products
- Users can view their cart
A full-stack e-commerce application using:
- Next.js and React as the front-end of our application
- Stripe API for product and transaction handling
- TailwindCSS to design and stylize our app
- Zustand for global state management
-
Clone this repository and save to a folder on a laptop (or on GitHub click
Code
>Download Zip
) -
Go to the directory (folder) where code is stored
cd /ecommerce-store-nextjs
-
Create
.env
file to load your specific environment variables
Create a .env
file at the root of the project directory.
STRIPE_SECRET="YOUR_STRIPE_API_KEY"
Ensure that you have Stripe account with products you've loaded in.
Get your STRIPE API key and place it inside the .env
file, replacing the "YOUR_STRIPE_API_KEY" including the "
quotation marks.
- Build and run the application
Ensure you have Nodejs with npm
installed.
Enter the commands in the terminal:
npm run dev
Open the url
link on your browser: usually it is:
http://localhost:3000
- Have fun shopping