Skip to content

lauchaves/React-CarShow-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published