This repo contains complete source code of the application.
Get current counter value:
$ curl -s "http://getnextid.com/counter/your.counter.name?auth=YOUR_PASSWORD"
1
Increment counter and get new value:
$ curl -s -X POST "http://getnextid.com/counter/your.counter.name?auth=YOUR_PASSWORD"
2
Ruby gem: https://github.com/mgz/getnextid-ruby
git clone git@github.com:mgz/getnextid.com.git && cd getnextid.com && \
docker build -t getnextid.com . && \
docker volume create postgres_data && \
docker run --name getnextid.com --rm -p 3118:80 -it -v `pwd`/postgres_data:/var/lib/postgresql getnextid.com
Navigate to http://localhost:3118