Hi! I try to create firebase HTTP trigger function...
# javascript
m
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
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
Nice, do you have a link to source code ?
g
No, but I can publish it. I have it in my local sandbox Kotlin/JS project
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)
m
Ok, thank you. If you can share the code to see how you did it, i will appreciate 🙂
âž• 1