This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from bancodobrasil/develop
v1.8.2
- Loading branch information
Showing
35 changed files
with
891 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ _data/ | |
.env.local | ||
.json | ||
.vscode | ||
|
||
.DS_Store | ||
data/ | ||
|
||
__debug_bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
[![Go Reference](https://pkg.go.dev/badge/github.com/abu-lang/goabu.svg)](https://pkg.go.dev/github.com/bancodobrasil/featws-api) | ||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/bancodobrasil/featws-api/blob/develop/LICENSE) | ||
|
||
# Featws API [![About_en](https://github.com/yammadev/flag-icons/blob/master/png/BR.png?raw=true)](https://github.com/bancodobrasil/featws-api/blob/develop/README.md) | ||
|
||
|
||
## Como executar | ||
|
||
Para executar este projeto, você precisa ter certos pré-requisitos configurados em sua máquina. Esses pré-requisitos incluem: | ||
|
||
- [Golang](https://go.dev/doc/install) | ||
- [Swaggo](https://github.com/swaggo/swag/blob/master/README_pt.md#come%C3%A7ando) | ||
- [Docker](https://www.docker.com/) | ||
|
||
|
||
Para executar o projeto, siga estes passos: | ||
|
||
- Abra o terminal no diretório do projeto e execute o comando `go mod tidy` para garantir que todas as dependências necessárias estejam instaladas. | ||
|
||
- Em seguida, execute o comando `swag init` para inicializar o Swagger e gerar a documentação da API necessária. | ||
|
||
- Abra o Docker da sua máquina, ou algum semelhante, para garantir que ele está funcionado. Logo, abra o terminal no repositório do projeto e rode `docker compose up`. | ||
|
||
- Após os containers serem iniciados e estarem rodando, execute o comando `make run` no terminal do projeto para iniciar o projeto. | ||
|
||
O projeto será executado em `localhost:9007`. Para acessar a documentação do Swagger, [clique aqui](http://localhost:9007/swagger/index.html#/). | ||
|
||
Seguindo estes passos, o projeto estará em execução e você poderá acessar a documentação da API através do Swagger. | ||
|
||
## GoDoc | ||
|
||
Para acessar a documentação do GoDoc, primeiro instale o GoDoc na sua máquina. Abra um terminal e digite: | ||
|
||
```` | ||
go get golang.org/x/tools/cmd/godoc | ||
```` | ||
|
||
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/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
# featws-backoffice-api | ||
[![Go Reference](https://pkg.go.dev/badge/github.com/abu-lang/goabu.svg)](https://pkg.go.dev/github.com/bancodobrasil/featws-api) | ||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/bancodobrasil/featws-api/blob/develop/LICENSE) | ||
|
||
# Featws API [![About_en](https://github.com/yammadev/flag-icons/blob/master/png/BR.png?raw=true)](https://github.com/bancodobrasil/featws-api/blob/develop/README-PTBR.md) | ||
## How to run | ||
|
||
In order to run this project, you need to have certain prerequisites set up on your machine. These prerequisites include: | ||
|
||
- [Golang](https://go.dev/doc/install) | ||
- [Swaggo](https://github.com/swaggo/swag/blob/master/README_pt.md#come%C3%A7ando) | ||
- [Docker](https://www.docker.com/) | ||
|
||
|
||
To run the project, follow these steps: | ||
|
||
- Open the terminal in the project directory and run the command `go mod tidy` to ensure that all required dependencies are installed. | ||
|
||
- Then, run the command `swag init` to initialize Swagger and generate the necessary API documentation. | ||
|
||
- Open Docker on your machine or a similar application to ensure that it is working properly. Then, open the terminal in the project repository and run `docker compose up`. | ||
|
||
- Once the containers are started and running, run the command `make run` in the project terminal to start the project. | ||
|
||
The project will run on `localhost:9007`. To access the Swagger documentation [click here](http://localhost:9007/swagger/index.html#/). | ||
|
||
By following these steps, the project will be up and running, and you will be able to access the API documentation through Swagger. | ||
|
||
## GoDoc | ||
|
||
To access the GoDoc documentation, first install GoDoc on your machine. Open a terminal and type: | ||
|
||
```` | ||
go get golang.org/x/tools/cmd/godoc | ||
```` | ||
|
||
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/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.