我是斯卡拉的新手。我试图真正做到这一点interesting example from Matthias Nehlsen to work - github source。
我确认我正确获取了Twitter数据(激活器运行)。但是,我没有获得生成的公共资产:
http://hostname:9000/angular/
给我404:
http://hostname:9000/assets/build/angular/birdwatch.js
http://hostname:9000/#
给我一个404:
http://hostname:9000/assets/build/react-js/birdwatch.js
我正在使用typesafe-activator 1.2.3运行:" activator run"
BirdWatch% activator run
[info] Loading project definition from ~/git/BirdWatch/project
[info] Set current project to BirdWatch (in build file:~/git/BirdWatch/)
--- (Running the application from SBT, auto-reloading is enabled) ---
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
[info] a.e.s.Slf4jLogger - Slf4jLogger started
[info] application - Starting new client
开始时(忘记添加,干净后):
Compiling 13 Scala sources and 1 Java source to ~/git/BirdWatch/target/scala-2.10/classes...
[warn] /Users/NathanDunn/git/BirdWatch/conf/routes:6: unreachable code
[warn] GET /cljs-dev/ controllers.BirdWatch.indexCljs
[warn] /Users/NathanDunn/git/BirdWatch/conf/routes:9: unreachable code
[warn] GET /cljs/ controllers.BirdWatch.indexCljsOpt
[warn] two warnings found
我认为这只是表明前一种模式包含后者。
答案 0 :(得分:0)
您需要构建客户端。
引用作者:
不同的客户端位于客户端/文件夹中,需要构建每个客户端才能工作。不再将客户端构建工件检入git存储库,以避免使存储库大小膨胀。
看看他们的自述文件:
您需要Node.js,Grunt和Bower来构建角度客户端。
https://github.com/matthiasn/BirdWatch/tree/master/clients/angular
https://github.com/matthiasn/BirdWatch/blob/master/clients/react-js