Skip to content

Commit dc059c8

Browse files
committed
update readme
1 parent 285cf8f commit dc059c8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ Current can GET- ADD- DELETE todotask
1616
1. Set proxy, must to be a string in package.json file
1717

1818
2. For example
19-
"proxy": "https://backend.example.com"
20-
19+
```json
20+
{
21+
"proxy": "https://backend.example.com"
22+
}
23+
```
2124
3. Run project
2225
npm install && npm start || yarn install && yarn start
2326

@@ -45,7 +48,7 @@ Set Proxy to deloy Heroku:
4548
"origin": "${API_URL}"
4649
}
4750
}
48-
}<br/>
51+
}
4952
```
5053
3. Push file to heroku
5154
git push heroku master
@@ -56,4 +59,6 @@ For example:<br/>
5659
From react: axios.get("/api/search-items") → ${API_URL}/search-items <br/>
5760
From react: axios.get("/api/users/me") → ${API_URL}/users/me<br/>
5861
(!)Therefore, run this cmd to set proxy var in heroku: <br/>
59-
heroku config:set API_URL="https://backend.example.com/api" <br/>
62+
```js
63+
heroku config:set API_URL="https://backend.example.com/api"
64+
```

0 commit comments

Comments
 (0)