An image hosting server written in Kotlin using Ktor framework. Made for my screenshot software screen-capture.
- Simple home page
- HTTP POST to upload images
- Saves upload date, last viewed and number of views in MongoDB
- Browse images by identifier/token (with paging)
- Clone this repository with
git clone https://github.com/toppev/img-host.git
or using SSHgit clone git@github.com:toppev/img-host.git
- Configure
database.properties
- Use
./gradlew build
to build the project. You can find theimage-host-all.jar
in./build/libs
directory - Either run the jar with
java -jar <jar file>
(requires MongoDB instance!) or run with Docker Compose: configuredocker-compose.yml
and rundocker-compose up
(will also start the MongoDB instance).