Gobase is a boilerplate for Go (golang) for creating boilerplate code, such as creating table, migration on database, creating request and response, etc.
Currently, gobase is only supported for postgresql, but we will add more feature further.
serve the applications
go run main.go serve
Generate boilerplate for code
-
Options:
- domain: domain name
go run main.go generate domain [OPTIONS]
-
Options:
- response: response name
go run main.go generate response [OPTIONS]
-
Options:
- request: request name
go run main.go generate request [OPTIONS]
-
go run main.go db fresh
-
go run main.go db clear
-
go run main.go db migrate