https://github.com/chfern/retsgo
🐻A minimalistic go framework to quickly build REST apis
https://github.com/chfern/retsgo
golang restapi webframework
Last synced: 10 months ago
JSON representation
🐻A minimalistic go framework to quickly build REST apis
- Host: GitHub
- URL: https://github.com/chfern/retsgo
- Owner: chfern
- Created: 2019-06-03T15:29:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T15:05:35.000Z (over 4 years ago)
- Last Synced: 2024-06-21T18:53:32.905Z (about 2 years ago)
- Topics: golang, restapi, webframework
- Language: Go
- Homepage:
- Size: 1.84 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RETSgo 🐻
## A minimalistic REST-api framework to scaffold backend api using [google's go](https://golang.org/)
*A helper I made to (hopefully) simplify API scaffolding process*
Current Version: 1.1.0
# Features
+ ORM (github.com/jinzhu/gorm)
+ Default middlewares (logging and error handling)
+ Middleware Chaining (github.com/justinas/alice)
+ Mux (github.com/gorilla/mux)
+ Compile-Time Dependency Injection (github.com/google/wire)
+ Scalable configurations for development, testing and production
+ JWT
# QuickStart
## Prerequisites :
- Make sure you have go, and the standard packages installed in your system. For guidance, head to [golang guide](https://golang.org/)
- Configure $GOPATH in your system. Try running `echo $GOPATH` (unix) in your terminal
It should print out something like /path/to/the/goworkspace
## Quick Start :
Get retsgo package
`go get github.com/fernandochristyanto/retsgo`
Run `retsgo -v`
it should print out the version number (if it does not, try restarting your terminal)
Create a new directory to hold your project, e.g:
`mkdir -p $GOPATH/src/github.com/mygithubusername/newprojectname`
Generate a new project
`retsgo newproject github.com/mygithubusername/newprojectname`