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 Nov 22, 2010
·
21 revisions
Installation
- Clone jetwick sources and build jetwick:
- git clone [email protected]:karussell/Jetwick.git jetwick
- mvn install -Dmaven.test.skip=true
- Download solr 1.4.1
http://www.apache.org/dyn/closer.cgi/lucene/solr/
- tar xzf apache-solr-1.4.1.tgz
- cd apache-solr-1.4.1/
- mv example path2jetwick/search
- Start the solr index
- ./solr-twindex-start.sh
- goto http://localhost:8082/solr/ to ensure it is started
- BTW: I'm using screen to start multiple apps in one console and let them running when exiting the server: look here or here
- 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.
- BTW: we didn't named jetwick because of jetty.
- Feed the index with tweets
- cp config-template.properties to ~/.jetwick/config.properties
- edit h2-db user and password
- edit twitter credentials (see below)
- start tweet collector
- ./myjava de.jetwick.tw.TweetCollector -maxTime=-1
Twitter Credentials
- 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=