keynmol / http4s-laminar-stack Goto Github PK
View Code? Open in Web Editor NEWA complete example of a fullstack (I actually don't know what this means) Scala application, using http4s on the backend and Laminar and Scala.js on the frontend
A complete example of a fullstack (I actually don't know what this means) Scala application, using http4s on the backend and Laminar and Scala.js on the frontend
i have a question. When compiling the backend a file called prod.js
is created in lib folder of the target universal. Is this file then loaded like a resource? Are the files in the lib folder readable as resources? thansk for your help?
runDev and runProd copy they file in the ressources
folder and not in the lib
folder. Is this expected?
thanks for any help you can give me.
I cloned the projects and attempted to run the tests.
The frontend throws an exception claiming that it cannot find jsdom. Would this be expected?
sbt:root> frontend/ Test / loadedTestFrameworks
internal/modules/cjs/loader.js:883
throw err;/ scalaJSLinkerImpl / fullClasspath 0s
^
Error: Cannot find module 'jsdom'
Require stack:
- /Users/simon/Code/laminar_full_stack/[stdin]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at codeWithJSDOMContext.js:3:15
at codeWithJSDOMContext.js:52:3
at Script.runInThisContext (vm.js:133:18)
at Object.runInThisContext (vm.js:310:38)
at [stdin]:8:29
at Script.runInThisContext (vm.js:133:18) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/simon/Code/laminar_full_stack/[stdin]' ]
}
[error] stack trace is suppressed; run last frontend / Test / loadedTestFrameworks for the full output
[error] (frontend / Test / loadedTestFrameworks) org.scalajs.testing.common.RPCCore$ClosedException: org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException
[error] Total time: 1 s, completed 14 Apr 2021, 17:01:56
I've had a go... and the results aren't pretty!
Is this something that was foreseen and I'm making a dogs dinner of... or is this actually not an "easy" problem. I tried with scalars bundler... I can't get it configured correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.