https://github.com/jaceklaskowski/github-twitter-mashup
GitHub/Twitter mashup
https://github.com/jaceklaskowski/github-twitter-mashup
Last synced: 3 months ago
JSON representation
GitHub/Twitter mashup
- Host: GitHub
- URL: https://github.com/jaceklaskowski/github-twitter-mashup
- Owner: jaceklaskowski
- License: apache-2.0
- Created: 2016-02-01T08:46:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-01T08:51:53.000Z (over 9 years ago)
- Last Synced: 2025-01-01T02:43:44.677Z (5 months ago)
- Language: Scala
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GitHub/Twitter mashup
===This is a sample project to showcase how to query for "reactive" project and tweets that mention them.
# How to run
Execute `sbt assembly`.
```
$ sbt assembly
...
[info] Packaging ...target/scala-2.11/github-twitter-mashup-assembly-1.0.0.jar
```Once built, you can run the uber-jar using its full path.
```
$ java -jar target/scala-2.11/github-twitter-mashup-assembly-1.0.0.jar
Usage: mashup
```You need to specify twitter credentials as described in the [official documentation](https://dev.twitter.com/overview/api).
# How to run using twitter4j.properties
Rather than specifying the twitter credentials on the command line, you can save them in `twitter4j.properties` file and use as follows:
```
$ java -DPROPS -cp .:target/scala-2.11/github-twitter-mashup-assembly-1.0.0.jar mashup
```The key points to remember is to use `-DPROPS` system property and the directory with the `twitter4j.properties` file as the first entry on the CLASSPATH.
PROTIP: Use `twitter4j.properties.template` as the template.
Good luck!