Giter Site home page Giter Site logo

raquo / laminar-full-stack-demo Goto Github PK

View Code? Open in Web Editor NEW
36.0 6.0 7.0 3.28 MB

Fully working client + server, dev + prod setup for Scala.js development, showcasing a bunch of Laminar & Scala.js patterns.

Home Page: https://demo.laminar.dev

License: MIT License

Dockerfile 0.14% Scala 90.01% JavaScript 2.51% HTML 0.35% Less 4.07% CSS 2.92%
compiletime crossbuild docker flyio hotreloading http4s json sbt scala scala-js

laminar-full-stack-demo's People

Contributors

misherpal avatar raquo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laminar-full-stack-demo's Issues

News & Updates Thread

I'll be posting laminar-demo updates here, e.g. when I add more examples, or start doing things differently.

Click the subscribe button on this issue in Github to get notified.

For questions / discussion, please go to Laminar discord, or the #scala-js channel on the Scala discord, if it's not specifically about Laminar.

A couple updates, to start with:

JsRouter incremental compilation problem

You might have noticed that sometimes when adding a new page, you get an incremental compilation error like "ThatNewPage does not exist" which does not go away until you sbt clean. This seems to be this bug In Scala 3. I made a small reproduction for it, so hopefully the fix is coming.

As a workaround, after you create a new Page, you need to save the pages.scala file BEFORE you use the page anywhere. Or, you can change JsRouter by removing the export of pages, and using Scala 2 patterns for that.

Upstream weather service partial outage is not handled

Thanks for the fantastic repo, this has been a very useful learning tool.

I had it working at first, but at some point the upstream API call at WeatherFetcher.scala line 26 is returning an empty currentConditions element. This would have been more confusing if it happened when I was first trying to get it going. When this problem first started, both Squamish and Netinat were failing. At the current moment, Netinat is working, but Squamish is still out.

I found this comment on a similar issue for a different region here (home-assistant/core#101533 (comment)) so maybe this is something that the code should be able to more gracefully handle. Although I could see if you want to leave it as is to keep the example pure. Maybe even just make a few more stations available, and add a warning that they could be out would help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.