Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bclozel/urlshortener
simple URL shortener application based on resthub + resthub-js
https://github.com/bclozel/urlshortener
Last synced: about 1 month ago
JSON representation
simple URL shortener application based on resthub + resthub-js
- Host: GitHub
- URL: https://github.com/bclozel/urlshortener
- Owner: bclozel
- Created: 2011-07-18T19:41:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-22T21:42:24.000Z (about 13 years ago)
- Last Synced: 2024-05-10T22:08:06.058Z (6 months ago)
- Language: Java
- Homepage:
- Size: 152 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# urlshortener
You'd think urlshortener is yet another flavor of URL shortener made with "the coolest framework".
urlshortener is in fact:
* a sample application made with RESThub and RESThub-js (so the "cool framework" part was actually right)
* an experiment on making a javascript application AJAX-crawlable# RESThub and RESThub-js
Both frameworks are hosted on [github](http://github.com/pullrequest) and their documentation is available
on [the official RESThub website](http://resthub.org).# Crawlers and AJAX crawling
Usually AJAX content/javascript based UIs and web crawlers [don't mix](http://code.google.com/web/ajaxcrawling/docs/learn-more.html).
Google engineers dealt with this problem with [a "contract" that any website can implement](http://code.google.com/web/ajaxcrawling/docs/getting-started.html) - basically a way of telling web spiders how to crawl your website.This project is using a Filter with an embedded [HTMLUnit](http://htmlunit.sourceforge.net/) that [generates HTML snapshots](http://code.google.com/web/ajaxcrawling/docs/html-snapshot.html) of your website.
# Doing it "the right way™"
This technique fits pretty well for legacy applications. I don't think it's the best solution for a brand new application, though...