- Using bash and gradle wrapper:
./gradlew bootRun
- Using gradle:
gradle bootRun
(requires gradle) - Using IDE: Run the main class
RedditTrendsApplication
as Java/Spring Boot application - Building the JAR artifact with
gradle build
and then running standalone JAR withjava -jar build/libs/reddit-trends-1.0-SNAPSHOT.jar
- Using gradle:
gradle test
- Report can be found here:
build/reports/tests/test/index.html
- localhost:8080/api/trends GET
- localhost:8080/api/trends/activity GET
- localhost:8080/api/trends/subreddits GET
- localhost:8080/api/trends/users GET
- see
TrendsResource
andRedditTrendsApplicationTest
for examples
For IDE support, Lombok plugin is required