nbb

2022-11-04T23:33:18.309279Z

https://www.crunchydata.com/pricing/calculator finally released my first production clojurescript app for work. The page itself is in remix with TS, but the price calculator code is built using nbb for custom tasks, and shadow-cljs for the client bundle deployed to fly and the remix app downloads the assets on startup so it can serve them locally.

🎉 3
borkdude 2022-11-05T00:11:53.031769Z

Awesome site! Thanks for sharing

teodorlu 2022-11-05T08:03:53.065759Z

I think I'm hitting some problems on Firefox on mobile (Android). Tried turning off my adblock, same result.

2022-11-05T14:55:41.019199Z

Interesting, taking a look

borkdude 2022-11-05T14:56:53.309879Z

I also saw some logos misplaced in chrome

borkdude 2022-11-05T14:57:16.604159Z

borkdude 2022-11-05T14:57:34.410579Z

Could you explain more how nbb fits into this project - it runs the backend on a lambda or so?

2022-11-05T15:01:00.907709Z

Ah yeah, looks like I messed up the caching. Visiting after 5 minutes will cause it to fetch new assets, but seems if the assets don't change, it ends up just deleting them 😛

2022-11-05T15:01:56.608999Z

nbb is used as the task system for building the static html, and rev'ing the assets

borkdude 2022-11-05T15:02:22.257869Z

ah, so there is no backend, just static website?

2022-11-05T15:02:57.014939Z

Correct for the price calc assets, the rest of the site is built with remix running on node that fetches assets from the http://fly.io deploy built with nbb + shadow-cljs

🎉 1
borkdude 2022-11-05T15:03:47.025469Z

interesting mix of tools :)

2022-11-05T15:35:17.796279Z

It's fixed now, seems to be working on firefox as well 😅

borkdude 2022-11-05T15:41:45.177029Z

ah yes. needed to manually clear my cache though

2022-11-05T15:42:49.525929Z

Good to know

teodorlu 2022-11-05T15:56:57.948289Z

Working here too 👌