- First Download the code
- Make Sure you have install Node.js
- Open "Amazon-Clone" Folder in any code editor(eg VS)
- Now Run Command(Amazon folder): npm i
- Create account in Stripe & firebase
- Copy Your firebase WebApp config and paste in firebase.js firebaseConfig = {};
- Open Stripe -> Developers -> API keys -> copy publishable keys and paste in APP.js const stripePromise = loadStripe('publishable key')
- copy secret key of stripe and paste in function folder/index.js const stripe = require("stripe")("Secret key here");
- Run same command in function folder: npm i
- Now lets run project
- For Frontend (AMAZON folder) run command: npm start
- For Backened (AMAZON/function folder) follow link: Link
- To Deploy a App with Firebase Hosting: Link
- frontened
- npm install @material-ui/icons
- npm install --save @stripe/react-stripe-js @stripe/stripe-js
- npm install axios
- npm install -g firebase-tools
- npm install moment --save
- npm install react-currency-format --save
- function
- npm install stripe --save
- npm install express
- npm i cors