diff options
-rw-r--r-- | go/README.markdown | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/go/README.markdown b/go/README.markdown index 17deb7d6..d3088685 100644 --- a/go/README.markdown +++ b/go/README.markdown @@ -1,26 +1,32 @@ -go - minimalistic uri shortener +# go - minimalistic uri shortener + +## install dependencies -# installation npm install - optionally + apparently you can also + npm install hiredis -# run service + for more awesome. + +## run service + HOSTN=go PORT=80 node . if you omit `HOSTN`, then relative shortened uris will be generated. -# add uri +## add uri + curl -F uri=https://mywaytoolonguri http://go this will give you a shortened uri. -# resolve uri +## resolve uri - curl -L http://go/1 + curl -L http://go/1 -# clear database +## clear database redis-cli keys 'go:*' | xargs redis-cli del |