Skip to content
workshop template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
composed
project
slides
src
.gitignore
.scalafmt.conf
README.md
build.sbt
remove.sh
start-dev-db.sh
start.sh
version.sbt

README.md

Trips CRUD - microservice

Run with SBT

Before running the service, you need to start Postgres database using available script:

sh start-dev-db.sh

Then use sbt run command

Run with Docker Compose

Requirements

  • Docker daemon needs to be available for SBT packager plugin

Build Docker image

First you need to build an image. In order to do that just run SBT commands to build a service image:

sbt stage
sbt docker:publishLocal

Now you can run the environment. There are two shell scripts to start and stop docker-compose environment which includes Postgres database as well

start script:

sh start.sh

stop script:

sh remove.sh
You can’t perform that action at this time.