Git Product home page Git Product logo

amazon-fullstack's Introduction

AMAZON FULL-STACK

Features

This is the Amazon Clone full stack, built by React on the frontend, backend designed by Nodejs, hosted on Firebase, among some features below:

  • The Home page
  • The Checkout page
  • Total price in cart
  • The Login page
  • User authentication
  • The payment page
  • Payment processing

URL Link

This website is deployed at https://clone-ed564.web.app/

Instruction

When hosting our local app into the link above, there is an issue with ES6 functions firebase while my code is in ES7. Thus, when the customer place an order, proceed to checkout, enter the credit/debit card, click on "Buy Now" button, it will display "processing". I will figure out it.

However, it runs successfully on the local machine. You can follow the instruction below:

  • Clone my project into your local machine: git clone "https://github.com/tuyenphk/amazon-fullstack.git"
  • Run on the front end first: cd "folder located" then npm install then npm start
  • Firebase Console: create the project, choose Web App and then copy Config Firebase SDK into firebase.js
  • Authentication: choose "Authentication" in Firebase Console, then enabled the Email/Password
  • Remember to run firebase in your local project: npm install -g firebase-tools
  • Go to https://stripe.com/, it is used for navigating the credit/debit card information. Sign in this website and go to the "Dashboard", choose "Developers" mode on the left side-bar, then API key. At this page, you will get the "Publishable Key" and "Secret Key"
  • The "Publishable key" will be added into the App.js
  • Create the Functions Firebase (backend for payment page): firebase init then choose Functions
  • When the backend folder is created, add the "Secret key" into the functions/index.js at stripe
  • Run backend: cd "backend located" then npm install express cors stripe then firebase emulators:start
  • Remember to run both frontend and backend so that when clicking on "Buy Now" button, the confirmation order will be displayed instead of the "processing".

amazon-fullstack's People

Contributors

tuyenphk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.