Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Everyone can build a rest service with Kotlin

Everyone can build a rest service with Kotlin

Building a REST service with SparkJava and Kotlin is super-easy. We will see how a single person can develop an app for Google Assistant powered by DialogFlow and a Kotlin backend.

Avatar for Andrea Maglie

Andrea Maglie

June 14, 2018
Tweet

More Decks by Andrea Maglie

Other Decks in Technology

Transcript

  1. Ing. Andrea Maglie ➤ Senior Software Engineer @ Musement ➤

    Organizer @ GDG Venezia ➤ [email protected] ➤ @TechIsFun ➤ github.com/TechIsFun
  2. NEW JAVA PROJECT ./musement-assistant-backend |--- gradle |--- libs |--- src

    |--- main |--- java |--- com.musement.assistant |--- Main.kt |--- resources |--- webapp |--- WEB-INF |--- web.xml |--- test |--- build.gradle |--- gradlew |--- settings.gradle
  3. I18N src |--- main |--- java |--- resources |--- i18n

    |--- language_en.properties |--- language_es.properties |--- language_it.properties |--- webapp |--- test
  4. I18N // language_en.properties today=today night=night nextweek=next week website=website entity.city.ask.alt.1=Which city

    are you interested in? entity.city.ask.alt.2=In which city? entity.city.ask.alt.3=Can you tell me which city you're interested in? entity.city.ask.alt.4=Which city were you thinking about? entity.city.ask.alt.5=Which city were you thinking of?