-
Notifications
You must be signed in to change notification settings - Fork 32
/
birdwatch_-_tweet_stream_analysis_and_visualization.pmx
67 lines (57 loc) · 2.27 KB
/
birdwatch_-_tweet_stream_analysis_and_visualization.pmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Birdwatch - Tweet stream analysis and visualization
description: "BirdWatch is an open-source reactive web application that consumes the
Twitter Streaming API for a selection of terms. It processes those matching tweets
in a server side application that is based on Play Framework. The tweets are then
stored inside ElasticSearch, where they are available for complex full-text searches.
\r\n\r\nCreated by Matthias Nehlsen\r\n"
keywords: twitter, topics, birdwatch, public
type: Java
documentation: |+
Birdwatch
======
This template installs a Play framework with the Birdwatch code and the latest version of elasticsearch. Several steps must be completed for the application to be operational and accessible.
In order to view your wiki after running, browse to http://panamax.local:9000
## Environment Variables
The application must interact with the Twitter API so it requires valid tokens. There are four twitter specific tokens which must be replaced:
+ TWITTER_CONSUMER_KEY
+ TWITTER_CONSUMER_SECRET
+ TWITTER_ACCESS_KEY
+ TWITTER_SECRET
Creating an account and application on [Dev Twitter](https://dev.twitter.com/) to generate these values.
The other environment variables can be changed to the topics and user accounts you wish to monitor.
## Checklist
+ Expose port 9000 in your VM
+ Update Environment variables with your twitter credentials
+ Navigate to [http://localhost:9000](http://localhost:9000)
images:
- name: birdwatch
source: argvader/birdwatch:latest
category: Application
type: Default
ports:
- host_port: '9000'
container_port: '9000'
proto: TCP
links:
- service: elasticsearch
alias: db
environment:
- variable: BIRDWATCH_TOPICS
value: docker,coreos,centurylink,clojure,clojurescript,panamax
- variable: TWITTER_USERS
value: '2384071,15358364'
- variable: TWITTER_CONSUMER_KEY
value: "[Replace with your consumer key]"
- variable: TWITTER_CONSUMER_SECRET
value: "[Replace with your consumer secret]"
- variable: TWITTER_ACCESS_KEY
value: "[Replace with your access key]"
- variable: TWITTER_SECRET
value: "[Replace with your access secret]"
- name: elasticsearch
source: dockerfile/elasticsearch:latest
category: Index
type: Default
expose:
- '9200'
- '9300'