Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunolkatz/se-test
https://github.com/brunolkatz/se-test
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brunolkatz/se-test
- Owner: brunolkatz
- Created: 2020-12-09T00:07:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T18:41:25.000Z (about 4 years ago)
- Last Synced: 2024-04-06T20:23:23.911Z (10 months ago)
- Language: Go
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Test Dev
```shell
go version: 1.15.4
```## Make
- Run ```make help```
- Compile: ```make compile```Environment Variables (in .env file)
---------------------Name | Description | Value | Default |
-----|-----------|---------|--------------|
PORT | Define server port | ```9999``` | ```9090```
GO_ENV | Define the Environment | ```local```, ```homol```, ```prod``` | ```local```### Make swagger files
1. install `swag`:
```shell
go get github.com/swaggo/swag/cmd/swag
```
2. In root project folder, execute:
```shell
swag init -g ./main.go
```
3. Access in ```http://localhost:[PORT]/swagger/index.html```- More info about documentation headers: [aqui](https://github.com/swaggo/swag)
### Run Docker
```shell
docker-compose up --build
```### Run Tests
```shell
go test ./...
```