Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogok/shortener
URL shortener
https://github.com/diogok/shortener
Last synced: about 2 months ago
JSON representation
URL shortener
- Host: GitHub
- URL: https://github.com/diogok/shortener
- Owner: diogok
- Created: 2011-01-16T23:20:21.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-13T03:48:10.000Z (over 13 years ago)
- Last Synced: 2023-04-13T15:11:49.060Z (over 1 year ago)
- Language: Clojure
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shorten
URL shortener in clojure+redis.
## CONFIG
Take a look at config.json
## HTTP API
Make a POST to /shorten like "url=http://google.com" and will receive the shortened url.
Make a GET to the shortened url to be redirected (301 + Location header).
Make a GET to /resolver/url , and url here is the shortpart to receive where is points to.## RUNING
Better run with -XX:+UseConcMarkSweepGC and -server .
lein run
java -jar shorten-0.1-standalone.jar -XX:+UseConcMarkSweepGC -server## License
Copyright (C) 2010 diogok
Distributed under the Eclipse Public License, the same as Clojure.