Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iunary/simply
Simple clean Go REST API architecture with dependency injection and MVC pattern
https://github.com/iunary/simply
air entgo gin-gonic golang mvc prometheus rest-api viper wire
Last synced: about 1 month ago
JSON representation
Simple clean Go REST API architecture with dependency injection and MVC pattern
- Host: GitHub
- URL: https://github.com/iunary/simply
- Owner: iunary
- Created: 2022-12-15T21:50:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T14:19:05.000Z (about 2 years ago)
- Last Synced: 2023-12-16T14:42:14.778Z (about 1 year ago)
- Topics: air, entgo, gin-gonic, golang, mvc, prometheus, rest-api, viper, wire
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simply
This is an example repository of how you can build a golang rest api project with wire for dependency injection and mvc pattern.
It has simples dependencies
- [Gin](https://gin-gonic.com/)
- [Wire](https://github.com/google/wire)
- [Prometheuse](https://github.com/prometheus)
- [Entgo](https://github.com/ent/ent)
- [Viper](https://github.com/spf13/viper)# Get started
```
git clone https://github.com/iunary/simply
```## Setup dependencies
```
go get ./...
```## Run the project
```
make run
```Or using [air](https://github.com/cosmtrek/air) for live reload
```
air
```## Endpoints examples
- Check users list example [http://localhost:8888/users](http://localhost:8888/users)
- Check health check endpoint [http://localhost:8888/health](http://localhost:8888/health)
- Check prometheuse metrics endpoint [http://localhost:8888/metrics](http://localhost:8888/metrics)