From 72b1667b7aa893d4de86b80e9dd99bc3d599580f Mon Sep 17 00:00:00 2001 From: KenNguyen-dev <74177525+KenNguyen-dev@users.noreply.github.com> Date: Thu, 29 Sep 2022 11:36:59 +0700 Subject: [PATCH 1/2] Create LIXILOTUS_SETUP.md --- LIXILOTUS_SETUP.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 LIXILOTUS_SETUP.md diff --git a/LIXILOTUS_SETUP.md b/LIXILOTUS_SETUP.md new file mode 100644 index 00000000..dc51503e --- /dev/null +++ b/LIXILOTUS_SETUP.md @@ -0,0 +1,55 @@ +# Quick setup + +1. Setup env variables in /etc/hosts file + +```shell + 127.0.0.1 accounts.localhost + 127.0.0.1 connect.localhost + 127.0.0.1 myaccount.localhost + 127.0.0.1 admin.localhost +``` + +2. Navigate to docker folder and run the following command for the backend service + +```shell + docker compose -p lixi-frontend -f lixi-frontend.yaml up +``` + +3. After that, open a new terminal and run the following command for frontend service + +```shell + docker compose -p lixi-frontend -f lixi-frontend.yaml up +``` + +4. After confirming both services are running, run the python setup-wizard in scripts folder + +```shell + ./scripts/setup-wizard +``` + +5. Command will result in following output + +``` + Setting Up Authorization Server and Infrastructure Console + + Creating Clients + Setup Identity Provider + Setup Communication Server + + Update auth server settings for Example Inc. + + Visit Admin URL http://admin.localhost:4220 + Login using email 'admin@example.com' or phone '+919876543210' + Use the password configured during setup wizard, default password Secret@1234 + + URLs : + Authorization Server http://accounts.localhost:4210 + Communication Server http://connect.localhost:4100 + Identity Provider http://myaccount.localhost:4420 +``` + +6. Go to [Admin Console](http://admin.localhost:4220) and login with username and password from above command output + +7. Create a new client for Lixilotus with openid, roles, email, profile, phone. + +8. After created, get Client Id and Client Secret and add to LixiLotus .env \ No newline at end of file From f3b052190298412b616a89e20c28f552fa02cae1 Mon Sep 17 00:00:00 2001 From: KenNguyen-dev <74177525+KenNguyen-dev@users.noreply.github.com> Date: Tue, 18 Oct 2022 10:10:31 +0700 Subject: [PATCH 2/2] Update LIXILOTUS_SETUP.md --- LIXILOTUS_SETUP.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LIXILOTUS_SETUP.md b/LIXILOTUS_SETUP.md index dc51503e..d80ccd22 100644 --- a/LIXILOTUS_SETUP.md +++ b/LIXILOTUS_SETUP.md @@ -12,7 +12,7 @@ 2. Navigate to docker folder and run the following command for the backend service ```shell - docker compose -p lixi-frontend -f lixi-frontend.yaml up + docker compose -p lixi-backend -f lixi-backend.yaml up ``` 3. After that, open a new terminal and run the following command for frontend service @@ -52,4 +52,4 @@ 7. Create a new client for Lixilotus with openid, roles, email, profile, phone. -8. After created, get Client Id and Client Secret and add to LixiLotus .env \ No newline at end of file +8. After created, get Client Id and Client Secret and add to LixiLotus .env