This practice tutorial done under 5 Days React JavaScript Challenge.
To view video tutorial by Sonny & Quzi, Please do visit - Clever Progammer
Demo - Amazon Clone
- Full User Interface with React JS
- Basket page/functionality with React Context API
- Deployment to Firebase
- Complete checkout screen functionaliy with ReactJS
- Full Login Functionality with Google Firebase Authentication
- Connect Front End to Firestore DB
- Checkout and Payment page with Stripe frontend
- Deploy Cloud functions to process Payments
- Stored orders for logged in user
- Orders history
- install
npm i -g firebase-tools
- If you have not logged to firebase command-line tools then
firebase login
- Initialize your firebase projcet
firebase init
- choose hosting by using space bar key to select it and then hit enter.
- then select existing project and hit enter
- It will ask about which directory to use, then provide
build
- Provide index.html as Single Page Application (SPA) YES
- Then we need to build ReactJS app -
npm run build
- ready to deploy -
firebase deploy
npx create-readt-app amazon-clone
npm install @material-ui/core
and npm install @material-ui/icon
npm install react-router-dom
npm install 'strip/strip-js'
and npm install '@stripe/react-stripe-js'
npm install moment
npm install express
npm install cors
npm install stripe
firebase deploy --only hosting
firebase deploy --only functions