From c7254fc1afe2b0cbf80326671cb5d1eda701e5b3 Mon Sep 17 00:00:00 2001 From: ditoaugusta Date: Tue, 24 Mar 2020 11:04:27 +0700 Subject: feat: .env.local to change backend url --- modern/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modern/README.md') diff --git a/modern/README.md b/modern/README.md index 6b8edbb3..c6092df7 100644 --- a/modern/README.md +++ b/modern/README.md @@ -4,8 +4,13 @@ It uses [React](https://reactjs.org/), [Material UI](https://material-ui.com/) a To run the project in development mode: -- Make sure you have Traccar back-end running locally on port 8082 +- Make sure you have Traccar backend running. - Install dependencies using `npm install` command - Run development server using `npm start` command +To change the backend server URL: + +- Copy the content of the .env to .env.local (new file) +- Change REACT_APP_URL_NAME to your backend URL. Example: 'example.com:8081' + Project was created using [Create React App](https://github.com/facebook/create-react-app). For more information see [user guide](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md). -- cgit v1.2.3