This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-03
Channels
- # aleph (2)
- # announcements (6)
- # babashka (6)
- # beginners (106)
- # biff (8)
- # clara (24)
- # clj-kondo (10)
- # clj-otel (4)
- # cljdoc (2)
- # clojure (54)
- # clojure-conj (3)
- # clojure-europe (85)
- # clojure-norway (54)
- # clojure-uk (3)
- # clojurescript (27)
- # community-development (2)
- # data-science (1)
- # datahike (2)
- # datomic (11)
- # deps-new (67)
- # emacs (4)
- # graalvm (15)
- # hyperfiddle (11)
- # introduce-yourself (1)
- # lsp (6)
- # malli (30)
- # midje (4)
- # nrepl (13)
- # off-topic (86)
- # polylith (7)
- # releases (2)
- # sql (10)
Okay, i've gotten to shadow-cljs release app. Now what? All the documentation i find seems to assume that you already know how to proceed, and not knowing the js ecosystem makes this somewhat hard to search for
What are you trying to do? You compiled your app with shadow-cljs release app
? There should be a single JS file somewhere now that you can include in your HTML
Right, that did it! Now what's the go-to way of serving these files to the web from my local machine?
@U0552GV2X32 If you want to let your friends browse those files while they are hosted by your computer, you can use https://ngrok.io
You pretty much drop the html, css, images, and app.js into a folder and let the server serve them up.
npx http-server
is a quick way to boot up a file server from whichever directory its run in
Apache rang a bell, and i got it up and running. Thanks for pointing me in the right direction 🙂
@U0552GV2X32 i recommend https://piku.github.io for deploying simple static sites on your own VPS.
I don't have a VPS at the moment, but github pages might actually be something for pure client-side projects
Returning to this topic, would i commit the compiled javascript to the git repository alongside the clojurescript if using github pages? (haven't used github pages before, nor made a website really)
You can if you want, but you'd probably be better served having a github action take care of the compiling and deployment. https://github.com/marketplace/actions/deploy-to-github-pages If you want a more copy-able example, https://github.com/elken/aoc/blob/master/.github/workflows/deploy.yml (you can remove the steps that aren't needed here like setting up java etc)
They're well-named 😄 probably just the first and last with an extra step to install node & run npx shadow-cljs release app