From e27e8818cb9c756167d23a1f74cc666bc7458dcc Mon Sep 17 00:00:00 2001 From: Arnaud Doucerain Date: Sun, 15 Nov 2020 10:44:18 +0100 Subject: [PATCH] tech: API URL now depends on environment and its local port is 3001 --- .env.sample | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index 1db85d3..e0fac83 100644 --- a/.env.sample +++ b/.env.sample @@ -1,2 +1,2 @@ -REACT_APP_API_PATH= -REACT_APP_BACK_BASE_URL= +REACT_APP_API_PATH=/api/v1 +REACT_APP_BACK_BASE_URL=http://localhost:3001 \ No newline at end of file diff --git a/README.md b/README.md index 32e0b09..3510d80 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo # Run back server -- App needs api running: [moss back server url](https://github.com/octo-wam/moss-back) +- App needs API running: [moss back server url](https://github.com/octo-wam/moss-back) (update `.env` with accurate REACT_APP_API_PATH and REACT_APP_BACK_BASE_URL) ## Available Scripts