Skip to content

Commit 76e9f9f

Browse files
committed
#5 - Readme documentation states incorrect ENDPOINT_ROOT path for local hosting
* Update README.md with correct instructions. * Update development enviornment file with indicitive value for locally hosting react app
1 parent e95f451 commit 76e9f9f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ npm start
7171

7272
**NB: To run the interface locally you will need to modify the endpoint root path and enable CORS.**
7373

74-
The endpoint root path can be found in Endpoint.js (./interface/src/constants/). This needs to be the root URL of the device running the back end, for example "http://192.168.0.6".
74+
The endpoint root path can be found in .env.development, defined as environment variable 'REACT_APP_ENDPOINT_ROOT'. This needs to be the root URL of the device running the back end, for example:
75+
76+
```
77+
"http://192.168.0.6/rest/".
78+
```
7579

7680
CORS can be enabled on the back end by uncommenting the -D ENABLE_CORS build flag in platformio.ini and re-deploying.
7781

interface/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_ENDPOINT_ROOT=http://developer.openobjects.com:8080/ds5-services/endpoint/esp8266/esp8266/esp8266/
1+
REACT_APP_ENDPOINT_ROOT=http://192.168.0.6/rest/

0 commit comments

Comments
 (0)