- Java Spring Boot application
- Maven for build management (using maven-wrapper)
- Mockito for unit testing
- Install Java 8. Download and follow instructions: https://java.com/en/download/
- it all works if
java -version
prints out the installed java version.
The application is developed using IntelliJ IDE. If you are familiar with it you can use the IDE to import the project and execute. Otherwise follow the next section to run the application.
You find instructions in this section to compile, configure and run.
# compile and execute unit tests
./mvnw clean install
Adapt the placeholder for the consumer_key
/ consumer_secret
in the file resources\application-prod
:
app:
twitterConfig:
consumerKey: "<consumer_key>"
consumerSecret: "<consumer_secret>"
You need to build the application again to have the new configuration ready in the prod
profile.
# program execution with activation of correct spring profile
java -jar -Dspring.profiles.active=prod ./target/github-twitter-api-mashup-0.0.1-SNAPSHOT.jar