Code for the article: https://medium.com/@Miqubel/your-first-node-js-app-with-kotlin-30e07baa0bf7#.gr6m4vrvw
npm install
(will install dependencies)./gradlew build
(will compile Kotlin to JavaScript)npm start
(this runsnode node/index.js
)- Open the browser on http://localhost:3000/
All source code is inside src/main/kotlin/Main.kt
please use supervisor to reload js after file changed.
npm install supervisor -g
supervisor app.js
Please set output absolute path in IntelliJ IDEA.
- Docker Integration