This repository was archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
karussell edited this page Feb 26, 2011
·
21 revisions
Four easy steps to install Jetwick on your machine(s)!
-
Clone jetwick sources and build jetwick
- git clone [email protected]:karussell/Jetwick.git jetwick
- cd jetwick
- mvn package -Dmaven.test.skip=true
-
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
-
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.
-
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.
- read http://dev.twitter.com/pages/auth#intro
- 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=
- 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=