This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-03
Channels
- # announcements (5)
- # aws (3)
- # babashka (52)
- # babashka-sci-dev (23)
- # beginners (51)
- # calva (191)
- # clj-commons (18)
- # clj-kondo (11)
- # cljdoc (39)
- # cljsrn (3)
- # clojure (24)
- # clojure-czech (3)
- # clojure-dev (2)
- # clojure-europe (15)
- # clojuredesign-podcast (2)
- # clojurescript (8)
- # conjure (2)
- # core-typed (151)
- # cursive (15)
- # data-science (3)
- # datalevin (4)
- # datomic (8)
- # figwheel-main (21)
- # fulcro (37)
- # gratitude (3)
- # honeysql (1)
- # hyperfiddle (2)
- # introduce-yourself (1)
- # malli (3)
- # membrane (54)
- # off-topic (21)
- # other-languages (4)
- # portal (18)
- # re-frame (12)
- # reagent (7)
- # releases (2)
- # sci (64)
- # spacemacs (14)
- # sql (2)
- # vim (4)
- # xtdb (6)
i have developed my application using figwheel and less, How can I pack them into uberjar? is there any doc available? Once I complile it should start start the figwheel server
An uberjar is only needed if the figwheel code is the front-end part of a back-end (full stack) project. I don't believe the figwheel server is suggested as a production deployment, only as an optional development tool I deploy my figwheel projects on GitHub pages using a GitHub Action (there are other similar services) https://github.com/practicalli/practicalli.github.io
@U05254DQM, Thanks for your response, I have a 2 modules in my project one is front-end and another is backend (these both are separate module in same project) frontend I am running with 3300 and backend with 3000 ports , This how I developed now
If the results of the figwheel build (and the less complied files) are put into a resources/public
directory and then an uberjar created, those files should be included in the uberjar file, they can then be served as files to the browser from the backend
You will need a route on the backend that serves the relevant html/CSS/JavaScript code if it's not part of the backend already
so u mean , once the backend server is started it will start both backend and frontend servers?
Using any unzip tool, the contents of an uberjar file can be viewed. Make sure resources
is set as a path on your backend project
The backend should serve up the front end when entering the relevant web address in a browser
currently i have deigned as below ,each moule has project.clj and they are separate from each other, also they run on different server
projectname
|- backend
|- frontend
I don't have anything like that, sorry
i mean any git repo you have seen earlier? or any git repo that might help me in this case
Nope. Seems strange to be running two servers. I would build the front-end into the backend and generate an uberjar, then deploy
If your backend can serve static files, then you already have the code you need
Thanks for your response @U05254DQM
https://luminusweb.com/ has a focus on full stack apps, but don't add too many options or it generates a lot of code that takes time to digest
Unless you need a custom server-side or backend API to be part of the same project, I would build the less and ClojureScript code as part of the continuous integration (CircleCI, GitHub Actions, etc)