devoxxfr_demo
devoxxfr_demo copied to clipboard
Twitter Demo for Devoxx France (Deprecated)
h1. Deprecated Project
This project is now fully running using Kibana. See new repository: https://github.com/dadoonet/kibana-twitter-demo
h1. Elasticsearch Twitter Demo for Devoxx France
Welcome to the Twitter Demo for Devoxx France
h2. Quickstart
Install Elasticsearch
Install Twitter River Plugin
Launch Elasticsearch
Create the river
Use the JQuery application to search
h2. Step by step guide
h3. Install Elasticsearch
Very easy :
Download "Elasticsearch 0.19.2":https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.2.zip
Unzip it
h3. Install Twitter River Plugin
Just do :
bin/plugin -install elasticsearch/elasticsearch-river-twitter/1.1.0
h3. Launch Elasticsearch
Just do :
bin/elasticsearch
h3. Create the river
Simply curl the river.
Note that you will have to provide your twitter account credentials.
You can create a "Twitter Application":https://dev.twitter.com/apps and then read your credentials to replace them below.
curl -XPUT http://localhost:9200/_river/devoxx/_meta -d '{
"type" : "twitter",
"twitter" : {
"oauth" : {
"consumerKey" : "yourConsumerKey",
"consumerSecret" : "yourConsumerSecret",
"accessToken" : "yourAccessToken",
"accessTokenSecret" : "yourAccessTokenSecret"
},
"filter" : {
"tracks" : ["devoxx", "devoxxfr"],
"follow" : [396502424]
}
},
"index" : {
"index" : "devoxx",
"type" : "tweet",
"bulk_size" : 1
}
}'
This river will listen to the "Twitter Hose":http://dev.twitter.com/pages/streaming_api and index everything that contains the terms devoxx, devoxxfr and follow every tweet by @devoxxfr account (396502424).
h3. Launch the demo
Download "Devoxx Demo":https://github.com/dadoonet/devoxxfr_demo/zipball/master
Unzip it
Launch index.html in Chrome and wait for tweets !
h1. Restore data from Devoxx France
Here is the full script to get a fully functional node with more than 10k tweets about Devoxx France.
Open a terminal and launch the following commands:
# Create demo dir
mkdir demo
cd demo
# Get jQuery Demo pages
curl -OL -k http://github.com/dadoonet/devoxxfr_demo/zipball/master
unzip master
rm master
mv dadoonet-devoxxfr_demo-* devoxxfr_demo
# Get Elaticsearch 0.19.3
curl -OL -k http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.3.zip
unzip elasticsearch-0.19.3.zip
rm elasticsearch-0.19.3.zip
cd elasticsearch-0.19.3
# Get Data for DevoxxFR (more than 10k tweets)
curl -OL -k http://github.com/downloads/dadoonet/devoxxfr_demo/data-devoxxfr.zip
unzip data-devoxxfr.zip
rm data-devoxxfr.zip
# Launch Elasticsearch (foreground)
bin/elasticsearch -f
Just open demo/devoxxfr_demo/index.html in your browser and you should see the Elasticsearch Twitter Demo for DevoxxFR.
Hit CTRL+C in your terminal when you want to stop the demo.
Nota : this script does not create the river to fetch new tweets. Refer to the first section if you want to do it.
h1. Even easier: grab a full packaged demo
Download "Offline Devoxx France 2012 Demo":https://github.com/downloads/dadoonet/devoxxfr_demo/offline_demo.zip
Unzip it
Launch bin/elasticsearch -f
Open "Offline Devoxx France 2012 Demo":http://localhost:9200/_plugin/demo/
You can also have a look at some cool plugins:
"MOBZ Head":http://localhost:9200/_plugin/head/
"Bigdesk":http://localhost:9200/_plugin/bigdesk/
"Paramedic":http://localhost:9200/_plugin/paramedic/
Enjoy!
Cool! Bonsai cool!
h1. Thanks
Thanks to "François Descamps":https://twitter.com/#!/descampsf for his help