Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/restuwahyu13/go-rest-api
Example golang using gin framework everything you need, i create this tutorial special for beginner.
https://github.com/restuwahyu13/go-rest-api
application-server crud-application gin gin-gonic go golang golang-application rest-api
Last synced: 2 months ago
JSON representation
Example golang using gin framework everything you need, i create this tutorial special for beginner.
- Host: GitHub
- URL: https://github.com/restuwahyu13/go-rest-api
- Owner: restuwahyu13
- Created: 2021-03-15T18:36:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T05:29:13.000Z (10 months ago)
- Last Synced: 2024-10-10T18:04:36.367Z (2 months ago)
- Topics: application-server, crud-application, gin, gin-gonic, go, golang, golang-application, rest-api
- Language: Go
- Homepage:
- Size: 9.22 MB
- Stars: 133
- Watchers: 2
- Forks: 49
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-made-by-indonesian - Golang Gin Framework Fundamental - `Example golang using gin framework everything you need, i create this tutorial special for beginner.` *by [Restu Wahyu Saputra](https://github.com/restuwahyu13)* (G)
README
## Golang Gin Framework Fundamental
Example golang using gin framework everything you need, i create this tutorial special for beginner.
### Feature
- [x] Containerize Application Using Docker
- [x] Protected Route Using JWT
- [x] Integerasi ORM Database Using Gorm
- [x] API Documentation Using Swagger
- [x] Validation Request Using Go Playground Validator
- [x] Integerasi Unit Testing
- [x] And More## Command
- ### Application Lifecycle
- Install node modules
```sh
$ go get . || go mod || make goinstall
```- Build application
```sh
$ go build -o main || make goprod
```- Start application in development
```sh
$ go run main.go | make godev
```- Test application
```sh
$ go test main.go main_test.go || make gotest
```* ### Docker Lifecycle
- Build container
```sh
$ docker-compose build | make dcb
```- Run container with flags
```sh
$ docker-compose up -d -- | make dcu f=
```- Run container build with flags
```sh
$ docker-compose up -d --build -- | make dcubf f=
```- Run container
```sh
$ docker-compose up -d --build | make dcu
```- Stop container
```sh
$ docker-compose down | make dcd
```### Author
- [Restu Wahyu Saputra](https://github.com/restuwahyu13)