From ceb8d8ad16dc805131473627468cc56c15fd7599 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 25 Oct 2018 11:28:19 +0100 Subject: [PATCH] Update readme with instructions on how to set up with dev-env --- services/git-bridge/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/services/git-bridge/README.md b/services/git-bridge/README.md index 92d86fdb47..ce882052b6 100644 --- a/services/git-bridge/README.md +++ b/services/git-bridge/README.md @@ -93,3 +93,18 @@ The configuration file is in `.json` format. } You have to restart the server for configuration changes to take effect. + + +## Setup with v2 Dev-Environment + +- Set `APP_GIT_BRIDGE_URL=http://localhost:8000` in v1 `common.env` +- In this repo, copy `conf/example.json` to `conf/local.json` +- Set up an OAuth app in v1 + - with `scopes = 'git_bridge'`, and `callback = 'http://v1.overleaf.test:500/no-callback'` +- Update values in `conf/local.json`: + - Set oauth creds + - `swapStore = {type: "noop"}"` + - `apiBaseUrl = "http://www.overleaf.test:5000/api/v0"` + - `postbackBaseUrl = "http://git_bridge:8000"` + - `oauth2Server = "http://www.overleaf.test:5000"` +- From this repo, do `make run`