dhax / go-base Goto Github PK
View Code? Open in Web Editor NEWGo RESTful API Boilerplate with JWT Authentication backed by PostgreSQL
License: MIT License
Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL
License: MIT License
Did not find go-base.yaml boilerplate
It's not clear where to put environment variable DATABASE_URL and other variables when using different config
Id love to use this with mongodb it would be great if there was an example or some db abstraction to make it easy to plug in another type
The new repository is https://github.com/golang-jwt/jwt
Can I update the package to the new one?
If yes, please assignee this issue for me and will send the pull request
dev@dev-x:$ cd Documentos/Documentos$ cd go-base
dev@dev-x:
dev@dev-x:/Documentos/go-base$ go build OK/Documentos/go-base$ go run main.go
dev@dev-x:
A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.
Usage:
go-base [command]
Available Commands:
gendoc Generate project documentation
help Help about any command
migrate use go-pg migration tool
serve start http server with configured api
Flags:
--config string config file (default is $HOME/.go-base.yaml)
--db_debug log sql to console
-h, --help help for go-base
Use "go-base [command] --help" for more information about a command.
dev@dev-x:/Documentos/go-base$ go-base migrate init/Documentos/go-base$ go-base migrate
go-base: comando não encontrado
dev@dev-x:
go-base: comando não encontrado
dev@dev-x:/Documentos/go-base$ go-base serve/Documentos/go-base$
go-base: comando não encontrado
dev@dev-x:
You should consider adding support for Swagger/OpenAPI.
$ dep init
# github.com/dhax/go-base/auth/jwt
auth/jwt/claims.go:17: undefined: jwtauth.Claims
auth/jwt/claims.go:52: undefined: jwtauth.Claims
auth/jwt/token.go:40: undefined: jwtauth.Claims
auth/jwt/token.go:41: undefined: jwtauth.Claims
auth/jwt/tokenauth.go:41: undefined: jwtauth.Claims
auth/jwt/tokenauth.go:54: undefined: jwtauth.Claims
auth/jwt/tokenauth.go:62: undefined: jwtauth.Claims
# github.com/dhax/go-base/vendor/github.com/go-pg/migrations
vendor/github.com/go-pg/migrations/db.go:17: syntax error: unexpected = in type declaration```
hello dhax and team, nice project. but i confuse for adding .go-base.yaml without example. its really nice to have if u prodive it. thanks
Hi, could you pls review my changes
When inserting without specifying id (auto increment, primary key) it returns
{
"status": "Unprocessable Entity",
"error": "ERROR #23505 duplicate key value violates unique constraint \"reports_pkey\""
}
Docker can be great to this project, you should consider to add it.
Actually i'am working in a dockerfile to a personal project using your boilerplate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.