Very simple counter written in Go. It allows you to track total count for some unique ID.
- Go 1.7+
- MongoDB 3.0+
- Grab source code
git clone
- Create config file:
cp config.example.toml config.toml
- Set up your DB connection in
config.toml
go run main.go
and you're done!
Track count for ID:
GET /counter/:id
Response
{
"status" : "ok"
}