Code Monkey home page Code Monkey logo

amazon-clone's Introduction

Purpose

The purpose of this application was to familiarize myself more with React and CSS. I deployed it using Firebase, check it out here: https://challenge-ec191.firebaseapp.com/.
I followed along an 8-hour youtube stream, check it out: https://www.youtube.com/watch?v=RDV3Z1KCBvo&t=18958s.

Stack

I used React.js and CSS for frontend and Firebase for hosting and deploying the webpage. To create the project, I used create-react-app (this uses Babel for transpilation and Webpack for bundling resources).

How to run it on your local machine

Make sure to have the following installed in cmd (Windows 10) or bash (Linux):

  • git (for windows download at https://gitforwindows.org/, otherwise type 'sudo apt install git' into bash terminal)
  • node >= 8.10
  • npm >= 5.6

Then:

  1. Open your terminal (cmd or bash)
  2. Clone the repository onto your local machine (type 'git clone https://github.com/NPVallejos/amazon-clone.git-repo-http')
  3. 'cd' into the repository on your local machine (type 'cd amazon-clone)
  4. Type 'npm install' to get the necessary node_modules
  5. Type 'npm start' - this should open the project in your browser after a few seconds
    • If nothing opens, open your browser and type 'localhost:3000/' into the address bar

Important Tools

Future of this project

  • I haven't finished the entire tutorial (around 4 hours in)
  • The next bonus part for the project is to implement a payment page and actually purchase a product using this application
  • Maybe pulling actual amazon products and add searching functionality (currently the search bar is just an aesthetic touch)
  • I also created a separate branch for a new feature: a drop-down menu for each product that allows you to choose a specific quantity to add to the cart
    • So far the dropdown menu works
    • In the Checkout page the subtotal calculation accounts for the quantity added per product
    • The only issue is that the calculated subtotal isn't updating immediately after removing a product from the basket
    • You can see the branch by selecting branch 'product-quantity-ui'

amazon-clone's People

Contributors

npvallejos avatar

Watchers

 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.