From 8c6206f038a96ea39253495784d5ff06035c22df Mon Sep 17 00:00:00 2001 From: Arthur Cadore <74879952+arthurcadore@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:27:23 -0300 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 00a675b..c8dd713 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Before you begin, ensure you have the following packages installed on your syste First, copy the line below and paste on your prompt to clone the repository: ``` -git clone https://github.com/arthurcadore/capacita-sig-cloud +git clone -b api-client-included https://github.com/arthurcadore/capacita-sig-cloud ``` If you don't have installed the package Git yet, do it before try to clone the respository! @@ -34,11 +34,16 @@ If you don't have Docker (and Docker-compose) installed on your system yet, it c ### Start Application's Container: -To start the application container, first of all, copy the authentication `t` and `aplicacao` files to the `./auth` directory. The authentication files need to be generated on windows, with sig-cloud adapter installed. +To start the application container, first of all, configure the `.env` file located at `./api` directory, the file has the following structure: -Remember that: The authentication files generated are directly connected to your user/location, so if you want to change the location or user connected to the cloud application, you need to regenerate these files. +``` +EMAIL=SEU-EMAIL +PASSWORD=SUA-SENHA +NOMELOCAL=SUA-LOCALIZACAO +``` +Change `SEU-EMAIL` with your email address, `SUA-SENHA` with your password, and `NOMELOCAL` with the zone name that you have configured in the sig-cloud website. -Once you have the authentication files, you can run the command below to start the container by docker-compose file: +Once you have configured the `.env` file, you can run the command below to start the container by docker-compose file: ``` docker compose up & @@ -71,12 +76,14 @@ Once the application has started, the `./logs` will be generated by container vo ``` . +├── api +│   ├── find-aplicacao +│   └── find-token ├── auth -│   ├── aplicacao -│   └── t ├── docker │   ├── Dockerfile -│   └── installDocker.sh +│   ├── installDocker.sh +│   └── startup.sh ├── docker-compose.yml ├── LICENSE ├── logs