Hi! I try to create firebase HTTP trigger function with Kotlin. Firebase uses expressjs and I want to wrap this lib in Kotlin. Do you have any resources to explain how to do that ?
g
gildor
01/24/2018, 7:33 AM
I built a small sample for firebase functions. But without type safe declarations for Functions API.
You can convert type definitions to Kotlin or write them manually
m
mmaillot
01/24/2018, 8:58 AM
Nice, do you have a link to source code ?
g
gildor
01/24/2018, 9:06 AM
No, but I can publish it. I have it in my local sandbox Kotlin/JS project
gildor
01/24/2018, 9:08 AM
Main thing that I tried to solve is integration with Gradle (download node.js, download dependencies, functions project structure etc) and some pitfalls with function declaration (you must declare each function as module, but default Kotlin module declaration is not enumerable, so you should define it manually)