aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile4
-rw-r--r--README.md20
-rw-r--r--build.gradle.kts2
3 files changed, 17 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..4ea9534
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,4 @@
+FROM adoptopenjdk/openjdk8:alpine-jre
+EXPOSE 8080
+COPY build/libs/reddit-lite-snapshot.jar /opt/reddit-lite.jar
+CMD ["java", "-jar", "/opt/reddit-lite.jar"] \ No newline at end of file
diff --git a/README.md b/README.md
index daba22a..bf30ae6 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,24 @@
# reddit-lite
-Demo [here](https://reddit.james-barnett.net)
+Available at [reddit.jamesbarnett.io](https://reddit.jamesbarnett.io)
A lightweight, minimal, readonly Reddit client, designed for mobile devices or slow connections.
-![comments](https://james-barnett.net/files/reddit-lite/screenshots/rl3.png)
+![comments](https://jamesbarnett.io/files/reddit-lite/screenshots/rl3.png)
## Running locally
-Reddit-lite is written in [play](https://www.playframework.com/).
-Running a non distribution version requires [sbt](http://www.scala-sbt.org/index.html) (which sucks btw).
+Reddit-lite is written in Kotlin using the [Spring Boot](https://spring.io/projects/spring-boot) framework.
+You will need Java 8 or later to run it.
```sh
git clone https://github.com/jamesbarnett91/reddit-lite && cd reddit-lite
-mv conf/application.conf.sample conf/application.conf
-sbt run
+./gradlew run
```
-Alternatively, just use IntelliJ with the scala plugin and import the project.
+Alternatively, you can pull the `jbarnett/reddit-lite` docker image and run that.
+```sh
+docker run --name reddit-lite -d -p 8080:8080 jbarnett/reddit-lite
+```
+Then navigate to `localhost:8080` in your browser.
+
+Or go to [reddit.jamesbarnett.io)](https://reddit.jamesbarnett.io) for a hosted version.
## TODOs
* ~~option to hide thumbnails~~ [done]
@@ -23,5 +28,4 @@ Alternatively, just use IntelliJ with the scala plugin and import the project.
* view subreddit info/sidebar
* highlight gilded posts/comments
* highlight comments from OP
-* clean up css and maybe inline it to save an http request
* should probably write some tests...
diff --git a/build.gradle.kts b/build.gradle.kts
index 99ff691..5dbf318 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ plugins {
}
group = "io.jamesbarnett"
-version = "0.0.1-SNAPSHOT"
+version = "snapshot"
java.sourceCompatibility = JavaVersion.VERSION_11
val developmentOnly by configurations.creating