Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
feat: first sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardaguterres committed Nov 10, 2023
1 parent 7fa04f5 commit d9f76f3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
37 changes: 36 additions & 1 deletion README-PTBR.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,39 @@ Em seguida rode no terminal do repositório o comando a seguir:
godoc -http=:6060
````

O GoDoc será executado em `localhost:6060`. Para acessar a documentação do GoDoc, basta [clicar aqui](http://localhost:6060/pkg/).
O GoDoc será executado em `localhost:6060`. Para acessar a documentação do GoDoc, basta [clicar aqui](http://localhost:6060/pkg/).

## MacOS config

O MySQL usado no Docker compose não é compatível aos chips da Apple (M1 e M2). Para que funcione faça as seguintes alterações:

### .env:

Crie a variável `FEATWS_API_MYSQL_URI` e adicione o caminho como a seguir:

``````
FEATWS_API_MYSQL_URI=api:api@tcp(localhost:3307)/api
``````

### Docker-compose

No docker compose será necessário que seja alterado o MySQL para o MariaDB. Apenas é necessário alterar o db do docker-compose.

``````
db:
image: mariadb
restart: always
ports:
- 3307:3306
volumes:
- ./data/mysql:/var/lib/mysql:rw
user: mysql
environment:
MARIADB_ROOT_PASSWORD: "root"
MARIADB_DATABASE: "api"
MARIADB_USER: "api"
MARIADB_PASSWORD: "api"
TELEMETRY_HTTPCLIENT_TLS: "false"
TELEMETRY_EXPORTER_JAEGER_AGENT_HOST: "localhost"
TELEMETRY_ENVIRONMENT: local
``````
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ Then run the following command in the repository terminal:
godoc -http=:6060
````

GoDoc will run on `localhost:6060`. To access the GoDoc documentation, just [click here](http://localhost:6060/pkg/).
GoDoc will run on `localhost:6060`. To access the GoDoc documentation, just [click here](http://localhost:6060/pkg/).

## MacOS config

0 comments on commit d9f76f3

Please sign in to comment.