clojurescript

manas_marthi 2025-01-27T05:12:04.707469Z

Is there a luminous template or some other template to create a GCP Serverless NodeJS project that runs on GCP backed by Firebase and uses EJS or SELMER templates and no Reagent/Reframe/React?

manas_marthi 2025-01-28T09:02:23.239729Z

Never looked into hono Also how to rewrite a is async/await function that fetches data from db? Thank you

martinklepsch 2025-01-28T10:37:07.447689Z

Just use promises, whereever you see async await you can just use promise APIs as well

manas_marthi 2025-01-28T13:17:12.169749Z

The reason for preferring wrappers is to use something that is used by thousands of people who have already uncovered weird errors and solved them. A production bug for which there is no solution on the internet is a nightmare. I want to minimise those chances . Is this the link for hono :https://hono.dev/docs/getting-started/nodejs? Do you have any sample clojurescript code that connects to MySQL to get some records and send them to a EJS or some other template using CLJS promises API?

martinklepsch 2025-01-28T13:18:55.046499Z

> The reason for preferring wrappers is to use something that is used by thousands of people who have already uncovered weird errors and solved them. This unfortunately won't be the case for most wrappers especially those wrapping newer JS libs

martinklepsch 2025-01-28T13:20:10.070399Z

> Do you have any sample clojurescript code that connects to MySQL to get some records and send them to a EJS or some other template using CLJS promises API? (edited) It's all the same as JS, I would suggest to use an LLM to translate examples to ClojureScript. And then you just need to set up shadow-cljs to produce the right artifact / bundle.

manas_marthi 2025-01-27T19:43:43.902259Z

I think what I need is Macchiato: https://github.com/macchiato-framework/macchiato-core

manas_marthi 2025-01-27T20:26:23.305919Z

this project has almost zero activity.. the deps are way too old.. Is there a wrapper on express.js?

martinklepsch 2025-01-27T22:36:16.414189Z

Why not just use hono? In my experience wrappers don’t add a lot of value and often obscure important concepts of the underlying framework. So recently I’m more and more leaning into interop and just dealing with JS head on. It’s a bit less pretty on the eyes but JS-interop in ClojureScript is pretty good and there’s some small utilities that make better (js-interop, cljs-bean)

martinklepsch 2025-01-27T06:38:03.003629Z

No template but I’ve used Hono for smaller APIs in the past and it has been working well :)

👍🏽 1