Giter VIP home page Giter VIP logo

react-shopping-cart's Introduction

React Shopping Cart

Simple React Shopping Cart without using Redux

React Shopping Cart Preview

Live Demo

https://sivadass.github.io/react-shopping-cart/

Setup

Goto the project folder and install required dependencies:

npm install

And run Webpack to watch for code changes and generate bundle.js:

webpack

Now open index.html in your browser to view the live page.

Additional Info

  • You may get CORS error, when running this app in your local machine. Open index.js and use products.json as url.

CORS Error

  • I used localhost of my Wamp server to run this app, you can even use webpack-dev-server to create a handy http server or any other of your choice.

  • To generate minified bundle.js, just stop your already running Webpack by pressing CTRL + C and enter Yes in your console. Open webpack.config.js and uncomment the line numbers from 24 to 33. Now re-run webpack command in your console to generate compressed bundle.

Minification

  • And to compile scss files to css, i used my already installed scout-app, but you can use any kind of sass compiler (gulp.js or webpack) of your choice.

react-shopping-cart's People

Contributors

sivadass 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.