用于实际Web项目的Scala-JS [英] Scala-JS for real web project

查看:96
本文介绍了用于实际Web项目的Scala-JS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在真实的Web项目中使用了Scala-JS,但不仅在孤立的环境中用于普通的JavaScript替代吗?

Has someone used Scala-JS in real web project but not only for plain JavaScript replacement in isolated env ?

我想尽可能多地使用Scala(我希望可以).似乎Scala-JS声称是我可以(现在)或将来使用的lib.

I would like to use Scala as much as possible (I wish I could). And seems Scala-JS claims to be that lib I could use (now) or in the future.

这就是为什么我对小型工作解决方案感兴趣的原因,以进行引导(例如PlayFramework应用程序,其中Scala-JS).

That's why I'm interested in small working solution to look at, to bootstrap (like PlayFramework app where Scala-JS).

可以证明Scala-JS可以用于实际的Web开发工作中的解决方案/示例.

The solution/example that could demonstrate that Scala-JS can be used in real web-development work.

我问是因为到目前为止,关于Scala-JS我发现了什么几乎没有真正的用法.

I'm asking because what I found about Scala-JS so far is hardly real usage of it.

问:一些例子/证明它已经可以在实际项目中使用了?

Q: some examples / proves that It is ready to use in real project?

更新(一年后):

例如,有大量的TypeScript示例..那就是我说示例"和真实的Web项目"时的意思.并且有许多在线培训.如果我在Google中查询:打字稿github angular",它将返回 17.2万个页面.不幸的是,ScalaJS缺少所有这些.

There are tons of examples for TypeScript for example.. That what I mean when I said "examples" and "real web projects". And there many online trainings. And if I query in Google: "typescript github angular", it returns 172 000 pages. ScalaJS has lack of all it definitely and unfortunately.

但是它有一些:'"scala-js" github angular'- 4 980个匹配项.但是到目前为止,大多数是没有商业支持"的发展的早期阶段"

But it has some: ' "scala-js" github angular ' - 4 980 matches. But so far most of it is "early stage of development" with "no commercial support"

那似乎很有希望: https://github.com/greencatsoft/scalajs-angular

推荐答案

我还没有特别看到客户端表单验证.但是,有几个项目可以有效地使用Scala.js,其中:

I haven't seen client-side form validation specifically, yet. However, there are several projects that use Scala.js effectively, among which:

  • A basic setup with PlayFramework, where client-side JS is written in Scala.js
  • A more significant example with PlayFramework essentially demonstrating the Scala.js actors proof-of-concept
  • Other projects written in Scala.js but with nothing to do with Play, but that demonstrate Scala.js' power to varying degrees.
  • Roll, probably the most significant Scala.js project so far.

这篇关于用于实际Web项目的Scala-JS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆