Skip to content

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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app - shortening is done Base62 (fewer characters)
config First commit
db First commit
doc First commit
features First commit
lib/tasks First commit
public First commit
script First commit
spec First commit
vendor/plugins First commit
.gitignore First commit
.rspec First commit
Gemfile First commit
Gemfile.lock First commit
License First commit
README First commit
Rakefile First commit
config.ru First commit

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.