blob: 17deb7d6eb5b7da24db8bd1da2319c20aa271099 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
go - minimalistic uri shortener
# installation
npm install
optionally
npm install hiredis
# run service
HOSTN=go PORT=80 node .
if you omit `HOSTN`, then relative shortened uris will be generated.
# add uri
curl -F uri=https://mywaytoolonguri http://go
this will give you a shortened uri.
# resolve uri
curl -L http://go/1
# clear database
redis-cli keys 'go:*' | xargs redis-cli del
if you have changed `redisPrefix`, then use that instead of `go:`.
|