This is the Uploadcare widget source.
Add following code to your document’s
// Widget settings
UPLOADCARE_PUBLIC_KEY = 'your_public_key';
The official Widget documentation has more information on using the widget itself.
Building Your Own
You need a working Ruby 1.9.3 environment with Bundler.
bundle installto get build dependencies.
bundle exec rake js:latest:buildto build assets to the pkg/latest directory (with the “latest” suffix).
bundle exec rake js:release:buildto build assets to the pkg/version folder (with the current version suffix). The version is specified in
Clone the repository, and go to
test/dummy/. There is a simple Rails app. Run it:
bundle install bundle update bundle exec rails server
Open http://0.0.0.0:3000/ . Follow any link. There’s going to be a widget or three. Edit code and reload page :-)
installed under the
test/dummy/ Rails app.
To run tests in your browser go to http://0.0.0.0:3000/jasmine.
For more information see jasminerice docs.
To run tests in a terminal you must first install phantomjs.
Then you have two options:
bundle exec guard start
bundle exec guard-jasmine
The first one is for continuous tests execution,
the second one runs tests just once.
Both should be executed from the
See guard-jasmine docs for more information.