Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Open source orng.us code

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 db
Octocat-spinner-32 public
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile
Octocat-spinner-32 app-config.json
Octocat-spinner-32 config.ru
Octocat-spinner-32 orngus.rb
Octocat-spinner-32 readme.mdown
readme.mdown

Orngus

This is the bulk of the codebase behind http://orng.us.

I've decided to open source much of the code, so others can learn from it and/or use it to build their own version.

What does Orng.us do?

The site performs four simple tasks:

  • It's a URL shortener
  • It's a file sharing site
  • It lets you easily share Markdown-formatted text
  • It's a smple pastebin for some popular web languages

How to set it up:

If you want to set up the Orng.us code for your own use, you'll need to do a few things first:

  • Edit the app-config.json file and enter yoru S3 credentails and site site URL.
  • Run bundler (bundle install) to install gems.
  • Migrate the database (rake db:migrate)
  • Style it! - Sorry, you get the included Pulp files, but the custom CSS has been removed.
  • Add any desired JavaScript goodness.

Where to go from here?

There are a few interesting things you could do from here.

  • More/better restrictions on S3 uploads
  • Upload directly to S3 rather than going through the app
  • Mask the S3 URL for downloads
  • Switch to MySQL or PgSQL in production.
  • Click tracking & analytics
  • Add support for more languages to the pastebin
  • Add support for revisions to the pastebin

License

This code is released under a CC Attribution Share-Alike Noncommercial license.

Something went wrong with that request. Please try again.