diff options
author | tv <tv@nomic.retiolum> | 2014-01-06 00:04:42 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-01-06 00:04:42 +0100 |
commit | c6386b16b5fe69abe284bd4c658fe286394e631a (patch) | |
tree | 46fa5fecf94520fb7b29746f52a4980d21893e95 /go/README.markdown | |
parent | 0afc64d121af21e8fa147acfc8419297a0a81d22 (diff) |
go: make README look like markdown harder
Diffstat (limited to 'go/README.markdown')
-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 |