Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beerose/go-rest-openapi
https://github.com/beerose/go-rest-openapi
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/beerose/go-rest-openapi
- Owner: beerose
- License: mit
- Created: 2023-07-19T17:14:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-19T17:39:01.000Z (over 1 year ago)
- Last Synced: 2024-10-18T17:13:01.311Z (2 months ago)
- Language: Go
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
**TL;DR command list**
git clone https://github.com/gbrayhan/microservices-go
cd microservices-go
cp config.json.example config.json
docker-compose up --build -d### Build and run image of docker
```bash
docker-compose up --build -d
```### Swagger Implementation
```bash
swag init -g infrastructure/rest/routes/routes.go
```To visualize the swagger documentation on local use
http://localhost:8080/v1/swagger/index.html
### Unit test command
```bash
# run recursive test
go test ./test/unit/...
# clean go test results in cache
go clean -testcache
```### Lint inspection of go
```bash
golangci-lint run ./...
```