Skip to content

Commit

Permalink
removed reference to npm run api
Browse files Browse the repository at this point in the history
  • Loading branch information
SheaClose committed May 8, 2018
1 parent 6a69a6c commit bfd2d33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ This project is also incorporating toast notifications to help visualize success

## Setup

1. `Fork` and `clone` this repository.
2. `cd` into the project directory.
3. Run `npm install`.
4. Run `npm start`.
5. In a seperate terminal, `cd` into the project directory.
6. Run `npm run api` to start the 'backend' api.
1. `Fork` and `clone` this repository.
2. `cd` into the project directory.
3. Run `npm install`.
4. Run `npm start`.
5. In a seperate terminal, `cd` into the project directory.

## API Documentation

Expand All @@ -45,7 +44,6 @@ In this step, we'll make use of `axios` to get the `Get All Vehicles` button to
* Hint: Inspect the returned data object.
* If the request is unsuccessful, use `toast.error`.


### Solution

<details>
Expand All @@ -66,7 +64,8 @@ getVehicles() {
## Step 2

### Summary
In this step, we'll make use of `axios` to get the `Increase Price` and `Decrease Price` buttons to work. When modifying/updating data on a server you always use a PUT request.

In this step, we'll make use of `axios` to get the `Increase Price` and `Decrease Price` buttons to work. When modifying/updating data on a server you always use a PUT request.

### Instructions

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"api": "json-server --watch db.json --port 3005 --routes routes.json --delay 500"
"eject": "react-scripts eject"
}
}

0 comments on commit bfd2d33

Please sign in to comment.