Skip to content

hmiyado/kottage

Repository files navigation

kottage

Development

# run on local machine http://0.0.0.0:8080
$ ./gradlew run

# run on docker container http://0.0.0.0:8080
# create .env/.db-env for docker first time
$ cp .ci.db-env .db-env
$ cp .ci.env .env
$ sh ./scripts/run-on-docker.sh

auto-reload

use aut-reload feature of ktor.

$ ./gradlew -t build

# open another terminal
$ ./gradlew run

# reload browser when you change some files 

test

# all
$ ./gradlew test

# run only unit test. e2e(karate) tests are excluded.
$ ./gradlew test -x karate:test

# run e2e test. fail if local server is not running
$ ./gradlew karate:test # run on local

publish

# publish image
$ sh ./scripts/publish-docker-image.sh
# publish infra
$ cd infra & make apply