An Amazon clone with complete functionality of signing in, payments, and order history
View Demo
Table of Contents
An Amazon clone which is a e-commerce website. It has complete functionality of signing in using google, products are displayed using FakeStore API, cart using redux, payments using stripe, and order history using firebase and stripe Webhooks. UI has been designed using Tailwind CSS.
This is how you may set up your project locally. To get a local copy up and running follow these simple steps.
You must have the following installed on your local machine.
- npm package manager
- yarn
npm install --global yarn
-
Fork the repo
-
Clone it to your local computer
git clone https://github.com/your_username_/Project-Name.git
-
Install NPM packages using yarn
yarn
-
Enter your Environment variables in
.env.localfileGOOGLE_ID= Get it from google cloud console GOOGLE_SECRET= Get it from google cloud console NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET= Get it from https://generate-secret.vercel.app/ NEXT_PUBLIC_STRIPE_PUBLIC_KEY= Get it from stripe dashboard STRIPE_SECRET_KEY= Get it from stripe dashboard STRIPE_SHIPPING_RATE= Get it from stripe dashboard STRIPE_SIGNING_SECRET= Get it from stripe dashboard FIREBASE_API_KEY= Get it from firebase console FIREBASE_AUTH_DOMAIN= Get it from firebase console FIREBASE_PROJECT_ID= Get it from firebase console FIREBASE_STORAGE_BUCKET= Get it from firebase console FIREBASE_MESSAGING_SENDER_ID= Get it from firebase console FIREBASE_APP_ID= Get it from firebase console PERMISSIONS_PROJECT_ID= Get it from firebase console PERMISSIONS_PRIVATE_KEY_ID= Get it from firebase console PERMISSIONS_PRIVATE_KEY= Get it from firebase console PERMISSIONS_CLIENT_EMAIL= Get it from firebase console PERMISSIONS_CLIENT_ID= Get it from firebase console PERMISSIONS_AUTH_URI= Get it from firebase console PERMISSIONS_TOKEN_URI= Get it from firebase console PERMISSIONS_AUTH_PROVIDER_X509_CERT_URL= Get it from firebase console PERMISSIONS_CLIENT_X509_CERT_URL= Get it from firebase console
-
Run the development server:
yarn dev
-
Open http://localhost:3000 with your browser to see the result.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Twitter - @BhavyanshJain
Project Link: https://github.com/BhavyanshJain/amazon-clone



