REST service which supports storing and retrieving files and their metatdata. The service is written in Kotlin and depends on a PostgreSQL database.
Note: all commands assume you are in the repo's top level directory
-
Build it:
./gradlew build
-
Through Docker
- Build docker container:
./gradlew jibDockerBuild
- Run
it:
docker-compose -f docker/postgres-container.yml -f docker/file-service-container.yml up
- Build docker container:
-
Through Gradle
- Run Postgres:
docker-compose -f docker/postgres-container.yml up
- Run the service:
./gradlew bootRun
- Run Postgres:
-
Through IntelliJ
- Run postgres container by going to the Docker postgres file and hitting the Run button
- Run File Service by going to the Main class and hitting the Run button