Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Shortener application that uses MongoDB, cucumber and rspec

branch: master

Merge pull request #1 from mwenglein/master

Base62 plus some extras to make shortening more efficient
latest commit 13bca4768e
Oscar Del Ben authored October 19, 2011
Octocat-spinner-32 app - shortening is done Base62 (fewer characters) October 19, 2011
Octocat-spinner-32 config First commit December 20, 2010
Octocat-spinner-32 db First commit December 20, 2010
Octocat-spinner-32 doc First commit December 20, 2010
Octocat-spinner-32 features First commit December 20, 2010
Octocat-spinner-32 lib First commit December 20, 2010
Octocat-spinner-32 public First commit December 20, 2010
Octocat-spinner-32 script First commit December 20, 2010
Octocat-spinner-32 spec First commit December 20, 2010
Octocat-spinner-32 vendor First commit December 20, 2010
Octocat-spinner-32 .gitignore First commit December 20, 2010
Octocat-spinner-32 .rspec First commit December 20, 2010
Octocat-spinner-32 Gemfile First commit December 20, 2010
Octocat-spinner-32 Gemfile.lock First commit December 20, 2010
Octocat-spinner-32 License First commit December 20, 2010
Octocat-spinner-32 README First commit December 20, 2010
Octocat-spinner-32 Rakefile First commit December 20, 2010
Octocat-spinner-32 config.ru First commit December 20, 2010
README
Url shortener

Technologies:

Rails 3
Cucumber
Rspec
MongoID

This is a demo app that I've created to get comfortable with MongoDB.

The app works as follow:

Enter an url and get its shortened version. You can see stats for shortened urls by appending .stats to the shortened url. To view the complete url before being redirected to it, append .preview to it.

Note: There's one failing step in Cucumber, given that I don't know how to test the redirect to an external domain. I'll fix this asap.
Something went wrong with that request. Please try again.