https://github.com/mvrilo/app-poc
a go poc project and boilerplate built with grpc, rest, protobuf, gin and gorm
https://github.com/mvrilo/app-poc
Last synced: 9 months ago
JSON representation
a go poc project and boilerplate built with grpc, rest, protobuf, gin and gorm
- Host: GitHub
- URL: https://github.com/mvrilo/app-poc
- Owner: mvrilo
- Archived: true
- Created: 2020-05-18T03:39:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T13:47:53.000Z (about 6 years ago)
- Last Synced: 2025-03-26T19:02:13.509Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 142 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# app-poc
`app-poc` is a SOA project built with Go intended to serve as a PoC and boilerplate for future development. It's built around DDD with gorm, protobuf, grpc and rest (via grpc-gateway and gin). The entrypoint is located at the root of the project, the `main.go`.
The business logic is located at the `core` directory. Each component of our server there, or _services_, must implement an interface for being loaded in the main server:
```
type RegisterableService interface {
Register(s *Server) error
}
```
Our services are defined and loaded at the main entrypoint, before starting the server.
For configuration it uses env vars, check `.env.sample` and `pkg/config`.
## Installing
With Go:
```
go get github.com/mvrilo/app-poc
```
Building, with Go:
```
git clone github.com/mvrilo/app-poc
cd app-poc
make deps
make
```
Running with Go:
```
make run
```
Running with docker-compose:
`docker-compose up`
## Author
Murilo Santana <>