Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.75 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.75 KB

React Car Show & API

React Car Show & API using ReactJS, Redux, NodeJS, MongoDB.

Prerequisites

You will need the following things properly installed on your computer.

Installation / Running

React CarShow

Checkout this repo, go to React-CarShow folder, install dependencies, then start the webpack process with the following:

> git clone https://github.com/lauchaves/React-CarShow-API
> cd React-CarShow-API
> cd React-CarShow
> npm install
> npm start

Stores API

Checkout this repo, go to api folder, install dependencies, then start the server process with the following:

> git clone https://github.com/lauchaves/React-CarShow-API
> cd React-CarShow-API
> cd api
> npm install
> babel-node server.js

Make sure to run mongo/mongod before run the server.

MongoDB database creation

For this API the following DB setup was made by running the following commands in the mongo shell:

> mongo
> use stores
> db.stores.insert({id:1,address:"Somewhere over the rainbow",name: "Super Store"});
WriteResult({ "nInserted" : 1 })
> db.articles.insert({id: 1, description: "The best soda", name: "Coca Cola", price:2, total_in_shelf: 55, total_in_vault: 40, store_name: "Super Store", store_id:1});
WriteResult({ "nInserted" : 1 })
> db.articles.insert({id: 2, description: "The best quality of shoes in a green color", name: "green shoes", price:20.15, total_in_shelf: 25, total_in_vault: 40, store_name: "Super Store", store_id:1});
WriteResult({ "nInserted" : 1 })

Screenshots