GithubHelp home page GithubHelp logo

viso's Introduction

Viso

Viso powers all public CloudApp pages. It displays images, renders markdown, syntax highlights code, redirects bookmarks to their URL, and provides a download button for all other file types. It's a thin client that at its heart is a simple Sinatra app which handles drop requests, pings the CloudApp API for its details, and renders or redirects according to the type of drop.

The power of Viso lies in its ability to be fully personalized. Don't like the default CloudApp image viewer? Tired of waiting for an HTML5 video player? No more! Fork the project, hack away, and deploy. That's all there is to it.

Prerequisites

Viso's needs are basic: Ruby 1.9.2, Bundler, and an Event Machine based web server like thin. Using RVM is recommended but not required. Assuming RVM is installed, getting up and running with Ruby 1.9.2 is as simple as:

rvm install 1.9.2

After Ruby has compiled, clone the project and create a stub rvmrc.

git clone [email protected]:cloudapp/viso.git
cd viso
rvm use 1.9.2 --rvmrc

If you're a gemset fan, you probably already know what you're doing, but here's the command just in case:

rvm use 1.9.2@viso --rvmrc --create

Getting Started

Viso uses Bundler to manage its dependencies. Install everything and kick start thin to run Viso locally.

gem install bundler
bundle install
bundle exec thin start

Browse to http://localhost:3000. If you're redirected to http://getcloudapp.com, it's alive! Now grab one of your drops and replace the "cl.ly" domain with "localhost:3000" and watch the magic happen. Or, if you're lazy, just click here.

Working

Crack open the image viewer to start hacking some markup and the stylesheet to get to stylin'. Of course, seeing as how this is your CloudApp, you're free to completely destroy everything and rebuild from the ground up. Have at it.

Parting Words

We'd love to see what you're doing with Viso. Get a hold of us and show it off! Did you find something broken? Have questions getting things running? Open an issue or send over a pull request.

License

Viso is released under the MIT license.

viso's People

Contributors

lmarburger avatar nlemke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gg0fox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.