Stack is a lightweight not-a-framework RESTful API that allow you to easily get started with your next project and show some of the my best practices about building RESTful APIs in Go.
- Proper using of middlewares
- Learn how to organize your files & folders structure
- User & Token APIs out of the box
- Authentication via tokens
- Keep context by *http.Request with gorilla/context
- Form parsing with gorilla/schema & validation with go-playground/validator
- MongoDB with go-mgo/mgo
- Command-line configuration
- App versioning over latest git commit hash
- ...
make run
docker-compose up
^C ctrl+c
^C^C twice
- post /users
- get /users
- get /users/{id}
- get /me
- post /tokens
- delete /tokens
- delete /tokens/{token}
- get /version
Send your access_token over X-Auth-Token header
For more information read the source code and do requests on endpoints
- GopherCon 2015: Blake Caldwell - Uptime: Building Resilient Services with Go https://www.youtube.com/watch?v=PyBJQA4clfc
- Share your ideas by opening new issues
- Feel free to ask for feature requests