Skip to content

thiki-org/kotlin-rest-sample

Repository files navigation

kotlin-rest-sample

A rest web service sample writen in kotlin and based on spring-boot.

Guide to installation

install gradle

brew install gradle
gradle --version 
# should >= 4.7

build

gradle build

init the db

  • create db

    Create a database named 'db_tms' with 'utf8mb4' encoding and 'utf8mb4_general_ci' in mysql. You can configure your db url in src/main/resources/application.yaml.

  • run the init sql

    You can find the sql file in src/test/resources/init_db.sql.

run the service

gradle bootRun

check it works

Just open http://localhost:8080/api/issue in your browser.

write something and enjoy.

About

a rest web service sample based on spring-boot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages