mukulmishra18 / Shopping-cart-prototype

This Repository contains Node.js Code for maintaining a shopping cart and saving it in browser cache.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shopping-cart-prototype

This Repository contains Node.js Code for maintaining a shopping cart and saving it in browser cache.

Instructions to setup

This requires presence of NPM and Node.js on system.

To install these kindly refer to https://docs.npmjs.com/getting-started/installing-node

1.) Clone this repo on your local system

2.) Using a terminal switch to the folder where this repo is cloned and install following modules from npm.

    1.) Express  
        sudo npm install express
    2.) Cookie-parser  
        sudo npm install cookie-parser
    3.) Body-parser
        sudo npm install body-parser

Since now the System is Setup we can proceed to run the cart prototype This Repo contains a dummy data in items.json and has a dummy frontend to display the working of Shopping cart.

##Now to run the code

1.) Using the terminal type

        node server.js 
    
        This will start the server at localhost and port 8080 by default
        Make sure you are in the clonned repo while doing this

2.) Now using a browser open 

        http://localhost:8080/ 

3.) The shoping cart will be displayed and could be used to view working

About

This Repository contains Node.js Code for maintaining a shopping cart and saving it in browser cache.


Languages

Language:JavaScript 80.3%Language:HTML 14.3%Language:CSS 5.4%