From f38d60f3d6aff69cd2524946e3f5fab5323fdad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jadach?= Date: Tue, 28 May 2024 13:52:36 +0200 Subject: [PATCH] update readme --- README.md | 34 ++++++++++++++++++++++++++++++++++ frontend/.env.example | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fb13ceb..d59e6f9 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,40 @@ Token list is taken from `server/tokens.json` ## Run locally +Backend: + + ```bash +yarn wrangler dev ``` + +or if dependencies are installed: + +```bash +yarn start:be +``` + +Frontend: + +```bash +cd frontend +yarn +yarn start +``` + +or if dependencies are installed: + +```bash +yarn start:fe +``` + +## Front-end .env: + +``` +REACT_APP_BACKEND_URL=tokentracker.hoprnet.workers.dev //'127.0.0.1:8787' if local server is used +REACT_APP_uHTTP_DP_ENDPOINT= //leave empty to use default +REACT_APP_uHTTP_TOKEN= +REACT_APP_uHTTP_FORCE_ZERO_HOP=true + +``` \ No newline at end of file diff --git a/frontend/.env.example b/frontend/.env.example index 08e18f6..8ac3c0f 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,4 +1,4 @@ -REACT_APP_BACKEND_URL=tokentracker.hoprnet.workers.dev //'http://127.0.0.1:8787' if used local server +REACT_APP_BACKEND_URL=tokentracker.hoprnet.workers.dev //'127.0.0.1:8787' if local server is used REACT_APP_uHTTP_DP_ENDPOINT= //leave empty to use default REACT_APP_uHTTP_TOKEN= REACT_APP_uHTTP_FORCE_ZERO_HOP=true