Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.42 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.42 KB

Paris JUG Twitter raffle website

This project defines the Twitter raffle website to gift our sponsor prizes.

Support and bug request are welcome on GitHub issues.

Bug report

homepage

showing a winner

Package

The application can be packaged as a jar application, the classic mode, or as a native application, the native mode.

Classic Mode

Compile the project with Maven:

mvn package

Native Mode

Compile project with Maven using native profile:

mvn package -Pnative

Run

Run providing Twitter client credentials using CLI arguments:

# Run classic mode
java -Dtwitter4j.oauth.consumerKey=<consumerKey> \
  -Dtwitter4j.oauth.consumerSecret=<consumerSecret> \
  -Dtwitter4j.oauth.accessToken=<accessToken> \
  -Dtwitter4j.oauth.accessTokenSecret=<accessTokenSecret> \
  -jar target/quarkus-app/quarkus-run.jar

Run providing Twitter client credential using environment variables:

export twitter4j_oauth_consumerKey=<consumerKey>
export twitter4j_oauth_consumerSecret=<consumerSecret>
export twitter4j_oauth_accessToken=<accessToken>
export twitter4j_oauth_accessTokenSecret=<accessTokenSecret>
# Run classic mode
java -jar -jar target/quarkus-app/quarkus-run.jar
# Run native mode
target/twitter-raffle-1.x.y-runner