Coder Social home page Coder Social logo

ducda0 / fullstack-shopping-cart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ivan3123708/fullstack-shopping-cart

0.0 0.0 0.0 2.78 MB

MERN stack shopping cart, written in TypeScript

Home Page: http://ij-mobile-shop.herokuapp.com/

HTML 0.53% JavaScript 19.86% CSS 13.48% TypeScript 66.13%

fullstack-shopping-cart's Introduction

MERN stack shopping cart

Description

Shopping cart app build with MERN stack and using RESTful API design. Responsive front-end design done with Material-UI, Passport used for authentication, database hosted on mLab. Deployed on Heroku.

You can get and view the list of all products from the API, register, add products to cart, remove specific product or empty entire cart, make order...

View demo here or go to "Installation and Usage" and follow the instructions to install and use.

Technologies & Tools

Front-end:

  • React
  • Redux
  • Redux-Saga
  • Material-UI
  • Webpack
  • Axios

Backend:

  • Node/Express
  • MongoDB/Mongoose
  • Passport

Installation and Usage

Requirements:

  • Node.js installed
  • MongoDB connection

Steps:

  1. Clone repo on your local machine:
$ git clone https://github.com/ivan3123708/fullstack-shopping-cart.git
  1. Install server-side dependencies:
$ cd fullstack-shopping-cart
$ npm install
  1. Install client-side dependencies:
$ cd client
$ npm install
  1. In server.js:

remove line 14,
replace mongoDB connection URI with your own, on line 20:

mongoose.connect(privates.mongoDBURI); --> to --> mongoose.connect(<Insert your mongoDB connection string here>);

replace express-session secret on line 27:

secret: privates.sessionSecret, --> to --> secret: <Insert your secret string here>,

after mongoose.connect add these two lines to seed products in your database:

const seedProducts = require('./seeds/products.js');
seedProducts();
  1. Build the app:
$ npm run build
  1. Execute the app:
$ cd ..
$ npm run start
  1. App now running on localhost:5000

fullstack-shopping-cart's People

Contributors

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