Skip to content

Installation

karussell edited this page Feb 26, 2011 · 21 revisions
Clone this wiki locally

Go Back to Home

Installation

Four easy steps to install Jetwick on your machine(s)!

  1. Clone jetwick sources and build jetwick

    • git clone git@github.com:karussell/Jetwick.git jetwick
    • cd jetwick
    • mvn package -Dmaven.test.skip=true
  2. Start the Elastic Search Node

    • ./myjava de.jetwick.es.ElasticNode
    • ensure it is started e.g. the following command should throw a missing index exception: curl -XGET 'http://localhost:9200/twindex/_status?pretty=true' or install elasticsearch-head
  3. Start jetwick

    • mvn jetty:run
    • you should see 'Started Jetty Server'
    • goto http://localhost:8080/jetwick/ to ensure it is started. You will see no tweets. But you shouldn't see an exception in the logs.
    • PS: or simply deploy the target/jetwick.war into your favourite java web server.
  4. Feed the index with tweets from twitter

    • create tagfile.txt and add one keyword per line e.g. 'java'
    • ./utils/es-import-tags.sh
    • Output should be Imported tag:1 all tags:0
    • cp ./utils/config-template.properties to ~/.jetwick/config.properties
    • edit twitter credentials (see below)
    • start tweet collector
      • ./myjava de.jetwick.tw.TweetCollector -maxTime=-1
    • Do not get irritated from exceptions when the TweetCollector queries the empty user index ...
    • Now wait ~30 sec then click search in the UI.

Twitter Credentials

  1. read http://dev.twitter.com/pages/auth#intro
  2. register an application here: http://dev.twitter.com/apps to search twitter or read your timeline
    • get the consumerKey + consumerSecret and set them in the ~/.jetwick/config.properties file
    • jetwick.twitter4j.main.consumerKey=
    • jetwick.twitter4j.main.consumerSecret=
  3. create a new token + tokenSecret: login with your twitter account via jetwick
    • view the values, see TwitterSearch.oAuthOnCallBack and log tmpRequestToken.getToken();tmpRequestToken.getTokenSecret();
    • jetwick.twitter4j.main.token=
    • jetwick.twitter4j.main.tokenSecret=
Something went wrong with that request. Please try again.