Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.03 KB

File Service

REST service which supports storing and retrieving files and their metatdata. The service is written in Kotlin and depends on a PostgreSQL database.

Running the File Service

Note: all commands assume you are in the repo's top level directory

  1. Build it: ./gradlew build

  2. Through Docker

    1. Build docker container: ./gradlew jibDockerBuild
    2. Run it: docker-compose -f docker/postgres-container.yml -f docker/file-service-container.yml up
  3. Through Gradle

    1. Run Postgres: docker-compose -f docker/postgres-container.yml up
    2. Run the service: ./gradlew bootRun
  4. Through IntelliJ

    1. Run postgres container by going to the Docker postgres file and hitting the Run button
    2. Run File Service by going to the Main class and hitting the Run button

Reference