Creating a service

Serverless Framework provides a nifty way to get started with a service using the serverless create command. They also provide a wide variety of templates so as to skip writing boilerplate code every time a service has to be created. If one needs to create a service powered by Kotlin and Gradle, the following command can be used:

serverless create --template aws-kotlin-jvm-gradle  --path letsPollApi

The Output is as follows:

 /letsPollApi      #project root directory  -build.gradle     #build file -setting.gradle   #settings file -gradle/          #gradle file    -gradlew          #gradle wrapper shell script for Unix -gradlew.bat      #gradle wrapper batch file for Windows -serverless.yml   #overarching serverless.yaml file -resources/ #fragrments of the serverless.yaml ...

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.