From 5baa9e83acfed19fc3780ce4c952e11584592ec4 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Fri, 29 Jun 2018 22:14:40 +0300 Subject: [PATCH] add part about testing frontend & backend using local server --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 960df529..c1368684 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,24 @@ URLs for development: * `localhost:8080/last-comments.html` β€” page with embedded script for last comments; * `localhost:8080/counter.html` β€” page with embedded script for counter with examples. +#### Testing + +Also you can use fully functional local version to develop and test both frontend & backend. + +To bring it up run: + +```bash +docker-compose -f compose-dev.yml build +docker-compose -f compose-dev.yml up +``` + +It starts Remark42 on `localhost:8080` +and adds local OAuth2 provider β€œDev”. To access UI demo page go to `localhost:8080/web`. + +That `compose-dev.yml` (you can find it in the root of the project) +also defines if logged user admin or not. +By default, it will be the admin, and to switch it to regular user comment or remove `-ADMIN=dev_user` there. + #### Usage ##### Comments