This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-24
Channels
- # adventofcode (1)
- # announcements (22)
- # babashka (30)
- # beginners (69)
- # calva (53)
- # cider (17)
- # cljfx (1)
- # clojure (2)
- # clojure-australia (1)
- # clojure-europe (1)
- # clojurescript (36)
- # code-reviews (10)
- # conjure (3)
- # cursive (2)
- # datomic (4)
- # fulcro (13)
- # graalvm (261)
- # luminus (2)
- # malli (1)
- # nrepl (13)
- # off-topic (19)
- # rdf (3)
- # reveal (1)
- # ring (3)
- # sci (66)
- # shadow-cljs (14)
- # spacemacs (1)
- # specmonstah (1)
- # test-check (1)
- # vim (2)
- # xtdb (14)
I am trying to get a QR code scanner to work in my project, I have tried several different ways but I am still getting problems. The most basic QR code example in react I have found is the following: I am trying to get a QR code scanner to work in my project, I have tried several different ways but I am still getting problems. The most basic QR code example in react I have found is the following:
import React from 'react';
import BarcodeScannerComponent from "react-webcam-barcode-scanner";
function App() {
const [ data, setData ] = React.useState('Not Found');
return (
<>
<BarcodeScannerComponent
width={500}
height={500}
onUpdate={(err, result) => {
if (result) setData(result.text)
else setData('Not Found')
}}
/>
<p>{data}</p>
</>
)
}
export default App;
Any suggestions would be most grateful, thanks.are there any tutorials anywhere online for building and deploying a shadow app as a jar? I tried just compiling it to js but I can't figure out how to get that working on a server. @neo2551 that article you linked was interesting but I couldn't figure out how to get it working with my use case.
You mean constantly running it as a server? Or running it on a server to output compiled js?
i'm not sure i understand the question, but I think the second one? I'm just trying to figure out how to run my release code on a server basically, and I think i'm going to need to use depstar to do it maybe.
in that case you can just uberjar both of them and have the server serve the frontend
server is heroku, I think they have java buildscripts. i've been having trouble getting an uberjar set up correctly when i have tried!
I'd recommend trying to build it manually first before setting up heroku. Wrestling with building an uberjar and heroku at the same time sounds like a bad time.
at least doing so would help you pinpoint where you're having trouble with bundling an uberjar
you're absolutely right! that's what i've been trying to do, unfortunately without much success. although, having thought about it some, I think building it isn't the issue. I can run the build after a release, but it crashes when i try to move it over to the server. so i think I need to get it onto the server in a form it recognizes, I'm going to try node and see if that gives any headway.