GoServe
An api server starter kit using gin, mongodb, jwt authentication
Install / Use
/learn @MrXu/GoServeREADME
goServe
An api server starter kit using gin, mongodb, jwt authentication
goServe is a seed project for you to kickstart golang restful api project.It tries to mimic Django by providing essential package such as basic authentication, social authentication, database connection and more to come. However, unlike Django, goServe only tries to serve the needs of Single Page Application and mobile application.
To use
- put this project into go src directory
- modify config.json to configure your app (mongodb url, jwt key, email)
- go run main.go
gin
goServe uses Gin as the framework. Gin provides excellent middlewares and uses httprouter for its performance.
mongodb
goServe uses Mgo as the MongoDB driver. Enjoy.
jwt auth flow
goServe implements the authentication flow with json web token. Token-based authentication provides better decoupling, scalability and real stateless api. For more information, go to ins and outs of token-based auth
Auth supports:
- email password
- facebook auth
Deploy to VPS
- install Go and config GOPATH
- install Git and clone your project
- install Supervisor
- build your app into bin
- use Supervisord to keep process running in the background (property “directory” denotes where your app runs from. Thus, keep your JSON config file in this directory)
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
