| __ _ _ _| | | '_ \| |/ _' | || |_| | __/|_|\____|\__ (_) |_| |__/ play! 2.1.1 (using Java 1.6.0_43 and Scala 2.10.0), http://www.playframework.org The new application will be created in /Users/mwunsch/Projects/my-app What is the application name? [my-app] > my-app Which template do you want to use for this new application? 1 - Create a simple Scala application 2 - Create a simple Java application > 1 OK, application my-app is created. Have fun!
Loading project definition from /Users/mwunsch/Projects/my-app/project [info] Set current project to my-app (in build file:/Users/mwunsch/Projects/my-app/) _ _ _ __ | | __ _ _ _| | | '_ \| |/ _' | || |_| | __/|_|\____|\__ (_) |_| |__/ play! 2.1.1 (using Java 1.6.0_43 and Scala 2.10.0), http://www.playframework.org > Type "help play" or "license" for more information. > Type "exit" or use Ctrl+D to leave this console. [my-app] $
are available: ----------------------------- classpath Display the project classpath. clean Clean all generated files. compile Compile the current application. console Launch the interactive Scala console (use :quit to exit). dependencies Display the dependencies summary. dist Construct standalone application package. exit Exit the console. h2-browser Launch the H2 Web browser. license Display licensing informations. package Package your application as a JAR. play-version Display the Play version. publish Publish your application in a remote repository. publish-local Publish your application in the local repository. reload Reload the current application build file. run <port> Run the current application in DEV mode. test Run Junit tests and/or Specs from the command line eclipse generate eclipse project file idea generate Intellij IDEA project file sh <command to run> execute a shell command start <port> Start the current application in another JVM in PROD mode. update Update application dependencies. Type `help` to get the standard sbt help.
priority routes first) # ~~~~ # Get all active sales GET / controllers.Application.index # Get active sales by store GET /:store controllers.Stores.activeSalesByKey(store) # Get a particular sale GET /:store/:sale controllers.Sales.show(sale, store) # Get a particular product GET /product/:id controllers.Products.show(id: Long) # Map static resources from the /public folder to the /assets URL path GET /assets/*file controllers.Assets.at(path="/public", file)
gilt/target/scala-2.10/classes... [error] /Users/mwunsch/Projects/play-gilt/app/controllers/ Stores.scala:29: No Json deserializer found for type Seq[models.Sale]. Try to implement an implicit Reads or Format for this type. [error] json.as[Seq[models.Sale]] [error] ^ [error] one error found [error] (compile:compile) Compilation failed [error] Total time: 1 s, completed Apr 17, 2013 10:46:58 AM