an API that returns random Reddit Submissions written in Java
https://redditapi.adb.sh/api/v1/r/programmerhumor/random
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
adb 584b851b4c | 4 years ago | |
---|---|---|
docker | 4 years ago | |
src/main/java | 4 years ago | |
.gitattributes | 4 years ago | |
.gitignore | 4 years ago | |
Dockerfile | 4 years ago | |
README.md | 4 years ago | |
RandomRedditMemesAPI.iml | 4 years ago | |
build.gradle | 4 years ago | |
docker-compose.yml | 4 years ago | |
gradlew | 4 years ago | |
gradlew.bat | 4 years ago | |
settings.gradle | 4 years ago |
README.md
RandomRedditMemesAPI
an API that returns random Reddit Submissions written in Java
build and run
build project
first make sure you're using Gradle 6.8 and openjdk-jdk8
to build the project just run:
gradle build
run
to execute the .jar archive you built before run:
java -jar ./build/libs/RandomRedditMemesAPI.jar
run inside docker
to execute the .jar file inside docker use docker-compose:
docker-compose -p RandomRedditMemesAPI up -docker
build docker image
if you want to build a full docker image run:
docker build .
alternatively you can use ./docker/docker-compose.yml