Skip to content

PerfectSlayer/twitter-raffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Paris JUG Twitter raffle website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published