Setting up the project

 Creating a Gradle project is similar to how we created the project in Chapter 4Developing your Serverless Application. The following step is the only difference:

Once the Gradle project is ready, we will need Kotlin's dependency on Node.js and express.js support. From the IDE's terminal, perform the following steps:

  1. Currently, the project is simple a Gradle project; it has no information regarding Node.js-related files. We need to make the project compatible with Node.js by doing the following:
npm init
  1. Install the Kotlin dependency:
npm install kotlin --save
  1. To create the API, we need ExpressJS. Add the ExpressJS ...

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.