New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ilgooz/stack

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ilgooz/stack

  • v0.0.0-20151006200246-bea0192de6eb
  • Source
  • Go
  • Socket score

Version published
Created
Source

Stack GoDoc

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.

What is included?

  • 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
  • ...

Usage

Run

make run

Run via Docker Compose

docker-compose up

Stop

^C ctrl+c

Hard Stop

^C^C twice

Out of The Box Endpoints

  • post /users
  • get /users
  • get /users/{id}
  • get /me
  • post /tokens
  • delete /tokens
  • delete /tokens/{token}
  • get /version

Authentication

Send your access_token over X-Auth-Token header

For more information read the source code and do requests on endpoints

Best practices resources about building APIs

Contribute

  • Share your ideas by opening new issues
  • Feel free to ask for feature requests

FAQs

Package last updated on 06 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc