Coder Social home page Coder Social logo

radian6_example's Introduction

Radian6 Example

This is an example showing how you can leverage the Radian6 API to show your dashboard widgets to the world.

Requirements

In addition to the files in this repository you might want to create a .env file with the following contents:

PORT=3000
RACK_ENV=development
[email protected]
RADIAN6_PASS=YourStrongPassword
RADIAN6_KEY=YourAPIKey

You should also change the widget ids to your own.

Line 125:
@@ index
#brands
  %img{ :src => '/images/conversation_header.png', :height => 65, :width => 580 }
  .radian6{ 'data-url' => '/widget/1595263638', 'data-type' => 'area' }
#number
  .radian6{ 'data-url' => '/widget/1595269472', 'data-type' => 'number' }
  .label Total number of social conversations analysed.
.searchbubble
  #pie
    .radian6{ 'data-url' => '/widget/1595388509', 'data-type' => 'pie' }
  #search
    .radian6#searchresults{ 'data-url' => '/widget/1595387168', 'data-type' => 'cloud' }
#map
  .conv_bubble
  .radian6{ 'data-url' => '/widget/1595388567', 'data-type' => 'geo' }

#hash
  .radian6#hashtags{ 'data-url' => '/widget/1595388463', 'data-type' => 'bar' }

Once created and changed you can initialize a local demo by using the following commands:

$ bundle install
...
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ foreman start
12:48:44 web.1   | started with pid 35267
12:48:44 guard.1 | started with pid 35268
...

Now you can point your browser to http://localhost:3000

Heroku

$ heroku create
Created sushi.herokuapp.com | [email protected]:sushi.git

$ heroku config:add heroku config:add [email protected] RADIAN6_PASS=YourStrongPassword RADIAN6_KEY=YourAPIKey
Setting config vars and restarting sushi... done, v

$ heroku addons:add memcache:5mb
...

$ git push heroku master
-----> Heroku receiving push
...

radian6_example's People

Contributors

tstachl avatar

Watchers

Aonghus Flynn avatar James Cloos avatar

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.