https://github.com/htomsik/go-rest-api-sample
https://github.com/htomsik/go-rest-api-sample
rest-api
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/htomsik/go-rest-api-sample
- Owner: Htomsik
- Created: 2023-05-27T18:43:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T23:52:39.000Z (over 1 year ago)
- Last Synced: 2025-07-26T11:39:45.977Z (11 months ago)
- Topics: rest-api
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GO REST API
Just my GO playground
## What can
- Base account operation (Authorize, create, deactivate)
- Store and process info in db
- Have swagger (url/swagger)
> All configs in configs/apiServer.toml
## You need
- GCC and CGO_ENABLED=1 (for go-sqlite3) `go env -w CGO_ENABLED=1`
- [Swag](https://github.com/swaggo/swag) (for generate swagger docs)
### RUN
#### With Make file
``` bash
Make build # build
Make Start # build and start
Make fullBuild # build with swaggo
```
#### Manual
``` bash
go mod tidy # if needed
swag init -g .\cmd\apiServer\main.go # optional (swagger docs)
go build -v ./cmd/apiServer
./apiServer
```