Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurcadore authored Nov 22, 2023
1 parent bfd8064 commit 8c6206f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand All @@ -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 &
Expand Down Expand 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
Expand Down

0 comments on commit 8c6206f

Please sign in to comment.