Giter Club home page Giter Club logo

modern-web-template's People

Contributors

andreapravato avatar andrewzurn avatar mbsmaga avatar msiegenthaler 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  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  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  avatar  avatar  avatar  avatar

modern-web-template's Issues

Angular JS error

There are some Angular JS error occurring in the master code. Some of my colleagues getting application up and running. I checked environment with them,but all same.

Environment details below.
Scala : 2.11.8
Activator : 1.3.9
SBT : 0.13.11
*Error : *
AppVersion.js:2 Uncaught ReferenceError: directivesModule is not defined
UserCtrl.js:31 Uncaught ReferenceError: controllersModule is not defined
CreateUserCtrl.js:33 Uncaught ReferenceError: controllersModule is not defined
UpdateUserCtrl.js:54 Uncaught ReferenceError: controllersModule is not defined
UserService.js:79 Uncaught ReferenceError: servicesModule is not defined
angular.js:11655Error: [ng:areq] http://errors.angularjs.org/1.3.15/ng/areq?p0=UserCtrl&p1=not%20aNaNunction%2C%20got%20undefined
at Error (native)
at http://localhost:9000/assets/lib/angularjs/angular.min.js:6:417
at Rb (http://localhost:9000/assets/lib/angularjs/angular.min.js:19:510)
at sb (http://localhost:9000/assets/lib/angularjs/angular.min.js:20:78)
at http://localhost:9000/assets/lib/angularjs/angular.min.js:75:396
at chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:951:22
at http://localhost:9000/assets/lib/angularjs/angular.min.js:57:100
at r (http://localhost:9000/assets/lib/angularjs/angular.min.js:7:408)
at B (http://localhost:9000/assets/lib/angularjs/angular.min.js:56:471)
at g (http://localhost:9000/assets/lib/angularjs/angular.min.js:51:335)(anonymous function) @ angular.js:11655

problems to run with activator ui

I can run the application without problems with sbt run.
Nevertheless, it doesn't work well when trying to run from actviator ui. That's all it shows:
play-error

I also opened this issue on activator's side.

MongoError['No primary node is available!']

Hi, I am getting the exception while running the project, I am using play2.2.0. Please check the generated log by Typesafe console below. Please give me some solution for this.

--- (Running the application from SBT, auto-reloading is enabled) ---
[info] play - Listening for HTTP on /0.0.0.0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
[1] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified
[info] application - ReactiveMongoPlugin starting...
[info] application - ReactiveMongoPlugin successfully started with db 'modern-web-template'! Servers:
[localhost:27017]
[info] play - Application started (Dev)
[DEBUG] [10/30/2014 09:32:13.168] [play-akka.actor.default-dispatcher-5] [EventStream(akka://reactivemongo)] logger log1-Logging$DefaultLogger started
[DEBUG] [10/30/2014 09:32:13.168] [play-akka.actor.default-dispatcher-5] [EventStream(akka://reactivemongo)] Default Loggers started
[error] r.api.Failover - Got an error, no more attempts to do. Completing with a failure...
reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$: MongoError['No primary node is available!']
at reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$.(actors.scala) ~[na:na]
at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$4.apply(actors.scala:508) ~[na:na]
at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$4.apply(actors.scala:508) ~[na:na]
at scala.Option.getOrElse(Option.scala:120) ~[na:na]
at reactivemongo.core.actors.MongoDBSystem.pickChannel(actors.scala:508) ~[na:na]
at reactivemongo.core.actors.MongoDBSystem$$anonfun$receive$1.applyOrElse(actors.scala:252) ~[na:na]
[error] application -
! @6k39kii01 - Internal server error, for (GET) [/users] ->

java.lang.NoSuchMethodError: com.typesafe.sbteclipse.core.EclipsePlugin

Running activator yeilds the following error message....

java.lang.NoSuchMethodError: com.typesafe.sbteclipse.core.EclipsePlugin$.EclipseKeys()Lcom/typesafe/sbteclipse/core/EclipsePlugin$EclipseKeys$;
at play.PlayEclipse$class.eclipseCommandSettings(PlayEclipse.scala:99)
at play.Play$.eclipseCommandSettings(Project.scala:17)
at play.PlayScala$.projectSettings(Project.scala:72)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:664)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:664)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at sbt.Load$.autoPluginSettings$1(Load.scala:664)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:679)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:680)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:680)
at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:34)
at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:680)
at sbt.Load$.resolveProject(Load.scala:682)
at sbt.Load$.finalizeProject$1(Load.scala:549)
at sbt.Load$.loadTransitive(Load.scala:577)
at sbt.Load$.loadProjects$1(Load.scala:442)
at sbt.Load$.loadUnit(Load.scala:446)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:334)
at sbt.Load$.loadURI(Load.scala:289)
at sbt.Load$.load(Load.scala:285)
at sbt.Load$.load(Load.scala:276)
at sbt.Load$.apply(Load.scala:130)
at sbt.Load$.defaultLoad(Load.scala:36)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:98)
at sbt.MainLoop$.run(MainLoop.scala:91)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
at sbt.MainLoop$.runLogged(MainLoop.scala:24)
at sbt.StandardMain$.runManaged(Main.scala:53)
at sbt.xMain.run(Main.scala:28)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.NoSuchMethodError: com.typesafe.sbteclipse.core.EclipsePlugin$.EclipseKeys()Lcom/typesafe/sbteclipse/core/EclipsePlugin$EclipseKeys$;

Does not work properly in Internet Explorer 11

Hi!

Thank you for this nice template. I'm new to web development and the Play framework but looking to use something similar to what you have here for my new web app. It works fine in Chrome and Firefox but in ie11 the list of users is not updated on the webpage when a new user is added ( I can see that it is inserted in the database though). Would be very grateful for a fix for this.

Thanks,

Viking

Update template for Scala 2.11 & Play 2.3

This is a great starter template for Play projects. Perhaps you could update the build files to reflect the following:

  • sbt version 0.13.5
  • scala version 2.11.1
  • Play version 2.3

Compiled coffeescripts loading order in debug mode

It seems that in the debug mode the loading order of the compiled coffeescripts are not specified and may cause error. In my case, the app.js is loaded after other javascript files which causes undefined module errors.

Pressing the "Add user" btn and nothing happens

I just downloaded this app (through Activator) it seems to run but when pressing the "add user" btn - nothing happens, not even an exception , I expected to see the "Add user" template.

Routing AngularJS Versus PlayFramework Paths

AngularJS routes are not properly handled by the backend. For example:

 /users/create

Results in an unresolved request in the backend. It would be preferred if in this case the back end forwards the URI to AngularJS, so that the template can be resolved in the front end. For example, consider the proposed route:

GET     /*any                       @controllers.Application.main(any)

And the following controller function:

  def main(any: String) = Action {
      logger.info("Serving index page via AngularJS...")
      val javascripts = { ... }
      Ok(views.html.index(javascripts))
   }

Using this approach, PlayFramework will forward the URI to AngularJS. The drawback in this case is that PlayFramework routes must be different from AngularJS ones to avoid conflicts. This can be solved by adding a prefix to all the asynchronous routes (e.g. /api/users instead of /users). I am not 100% sure this is the best way to solve the problem, so it would be nice to hear more ideas.

AngularJS generators compared

Hi group,

I want to help.

But I'm an AngularJS newcomer. That being the case, I am making this comparison of AngularJS generators. The comparison is an editable Google spreadsheet. So I welcome your corrections, additions and feedback. I also welcome you to add a column for modern-web-template.

I don't think anyone has done this before, but if you know otherwise, please let me know.

My goals of this research are to:

  1. Educate people about what can go into an app with AngularJS
  2. Help expedite the convergence of best practices
  3. Reduce time spent in duplicating features without knowledge of prior art

I hope you find this helpful.

Best regards,
Dan

JSON from Angular to Play Controller gets $oid stripped on Angular 1.2.13

Trying to write an update command and while sending the JSON back to the Play controller, Angular 1.2.13 strips out any $ characters, like the $oid which will cause validation errors.

Updating to the latest Angular version (1.3.6) fixed this issue.

If I get to it, I'll fork, update, test and submit a pull request.

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.