- Notifications
You must be signed in to change notification settings - Fork507
Exemplary real world application built with Golang + Gin
License
gothinkster/golang-gin-realworld-example-app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Golang/Gin codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to theRealWorld spec and API.
This codebase was created to demonstrate a fully fledged fullstack application built withGolang/Gin including CRUD operations, authentication, routing, pagination, and more.
.├── gorm.db├── hello.go├── common│ ├── utils.go //small tools function│ └── database.go //DB connect manager├── users| ├── models.go //data models define & DB operation| ├── serializers.go //response computing & format| ├── routers.go //business logic & router binding| ├── middlewares.go //put the before & after logic of handle request| └── validators.go //form/json checker├── ......
Make sure you have Go 1.13 or higher installed.
https://golang.org/doc/install
Set-up the standard Go environment variables according to latest guidance (seehttps://golang.org/doc/install#install).
From the project root, run:
go build ./...go test ./...go mod tidy
From the project root, run:
go test ./...
or
go test ./... -cover
or
go test -v ./... -cover
depending on whether you want to see test coverage and how verbose the output you want.
- More elegance config
- Test coverage (common & users 100%, article 0%)
- ProtoBuf support
- Code structure optimize (I think some place can use interface)
- Continuous integration (done)
About
Exemplary real world application built with Golang + Gin
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors9
Uh oh!
There was an error while loading.Please reload this page.