资 源 简 介
Grurly is a URL shortening script (like bit.ly, tinyurl.com et.c.) written in Groovy (groovlet).
It is written and tested with MySQL, but should in theory work with most databases (I love theories). It supports custom URLs and automagically generated URLs. It has basic click count functionality and supports both normal style redirects (Location HTTP header) and META REFRESH type redirects.
Installation instructions
Edit the database settings (username, password, url and driver) at the top of src/main/webapp/index.groovy to reflect your database.
Run the SQL schema in src/main/sql/schema.sql to generate the necessary tables
Execute mvn package
Deploy the generated WAR file
Alternatively you can download the WAR file from this page, open it in a ZIP manager (or unpack it) and edit the index.groovy script. You still have to create the tables of course.