Kotlin 与 Node.js 集成演示

本演示展示了 Kotlin 与 Node.js 的集成方式,使用 Gradle 作为构建工具。

  • Kotlin 是一种编程语言,与 Java 完全兼容,并支持编译到 Java 字节码(目前处于实验阶段)。

本演示包含:

  • kotlin_demo 模块:包含 Kotlin 代码。
  • express_js 模块:包含基本的 Node.js Express 应用程序。

express_js/compiled.js 文件包含 Kotlin 标准库和编译后的 Kotlin 代码。

zip
kotlin-nodejs-experiment-master.zip 预估大小:25个文件
folder
kotlin-nodejs-experiment-master 文件夹
file
.gitignore 2KB
folder
gradle 文件夹
folder
wrapper 文件夹
file
gradle-wrapper.jar 52KB
file
gradle-wrapper.properties 231B
file
README.md 2KB
file
build.gradle 464B
folder
express_js 文件夹
folder
routes 文件夹
file
kotlin.js 417B
file
index.js 207B
file
build.gradle 288B
folder
views 文件夹
file
kotlin_demo.ejs 200B
file
index.ejs 269B
file
error.ejs 83B
folder
bin 文件夹
file
www 2KB
folder
public 文件夹
folder
stylesheets 文件夹
file
style.css 111B
file
app.js 2KB
file
package.json 361B
file
gradlew.bat 2KB
file
gradlew 5KB
folder
.idea 文件夹
file
encodings.xml 159B
file
misc.xml 488B
file
modules.xml 2KB
file
compiler.xml 850B
file
settings.gradle 38B
folder
demo_kotlin 文件夹
file
build.gradle 2KB
folder
src 文件夹
folder
main 文件夹
folder
kotlin 文件夹
folder
cz 文件夹
folder
sazel 文件夹
folder
demo_kotlin 文件夹
file
Demo.kt 494B
file
common.kt 165B
zip 文件大小:65.08KB