Public | Automated Build

Last pushed: 2 years ago
Short Description
Example Rails app using a "Tweet Relevance" agent.
Full Description


Example Rails application for a "tweet relevance" agent using


The application integrates with both the Twitter API and the API. You will need accounts and configuration options from both. The app is configured through environment variables.

Create a twitter application

  • Visit, sign in and click "Create New App".
  • Complete the form with appropriate values, then click on "Keys and Access Tokens"
  • From the "Application Settings" section under the Keys and Access Tokens tab, copy the following environment variables:
    • "Consumer Key (API Key)" as TWITTER_CONSUMER_KEY
    • "Consumer Secret (API Secret)" as TWITTER_CONSUMER_SECRET
  • From the "Your Access Token" section, copy the following values:
    • "Access Token" as TWITTER_ACCESS_TOKEN
    • "Access Token Secret" as TWITTER_ACCESS_SECRET

Create a Agent

  • If you haven't done so already, create an account at and log in.
  • From your dashboard, copy your api key to the environment variable FUZZY_API_KEY.
  • Visit and click "Create".
  • Copy the agent ID from the newly created agent to the environment variable FUZZY_AGENT_ID



After clicking the button above, you will be prompted for the configuration variables from the previous section.

Docker Cloud

Before you deploy to Docker Cloud, make sure you have an account and are logged in: at

After clicking the button above, you will have an opportunity to edit the with the values from the previous section.

Local installation


  • Ruby >= 2.2.2 (Use rvm to get recent ruby versions)
  • Bundler (gem install bundler)
  • Postgresql


  1. Clone the repository
  2. Run bundle install
  3. Run bundle exec rails db:create
  4. Create a .env based on env.sample (cp env.sample .env)
  5. Run bundle exec rails server
  6. Load the site at http://localhost:3000/
Docker Pull Command
Source Repository