Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
72 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
logs | ||
project/project | ||
project/target | ||
target | ||
tmp | ||
*.iml | ||
|
||
/logs | ||
/project/project | ||
/project/target | ||
/target | ||
/*.iml | ||
/.idea |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: target/start | ||
web: target/start -Dhttp.port=$PORT -DapplyEvolutions.default=true -Ddb.default.driver=org.postgresql.Driver -Ddb.default.url=$DATABASE_URL |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$ -> | ||
$.get "/listBars", (data) -> | ||
$.each data, (index, item) -> | ||
$("#bars").append "<li>Bar " + item.name + "</li>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
@(message: String)(barForm: Form[Bar]) | ||
@(form: play.data.Form[Bar]) | ||
|
||
@import helper._ | ||
@main("Welcome to Play 2.0") { | ||
|
||
@main("Welcome to PlayBar 2") { | ||
<h3>@message</h3> | ||
<script src="@routes.Assets.at("javascripts/index.js")" type="text/javascript"></script> | ||
|
||
@form(action = routes.Application.addBar, args = 'id -> "barForm") { | ||
<ul id="bars"></ul> | ||
|
||
@inputText( | ||
field = barForm("name"), | ||
args = 'label -> "Name of bar?", 'placeholder -> "Foo Bar" | ||
) | ||
|
||
<p class="buttons"> | ||
<input type="submit"> | ||
<p> | ||
@helper.form(action = routes.Application.addBar) { | ||
@helper.inputText(form("name")) | ||
<input type="submit"/> | ||
} | ||
|
||
<ul id="bars"> | ||
|
||
</ul> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# --- Created by Ebean DDL | ||
# To stop Ebean DDL generation, remove this comment and start using Evolutions | ||
|
||
# --- !Ups | ||
|
||
create table bar ( | ||
id varchar(255) not null, | ||
name varchar(255), | ||
constraint pk_bar primary key (id)) | ||
; | ||
|
||
create sequence bar_seq; | ||
|
||
|
||
|
||
|
||
# --- !Downs | ||
|
||
SET REFERENTIAL_INTEGRITY FALSE; | ||
|
||
drop table if exists bar; | ||
|
||
SET REFERENTIAL_INTEGRITY TRUE; | ||
|
||
drop sequence if exists bar_seq; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
// Comment to get more information during initialization | ||
logLevel := Level.Warn | ||
|
||
resolvers ++= Seq( | ||
DefaultMavenRepository, | ||
Resolver.url("Play", url("https://playframework2.ci.cloudbees.com/job/play2-integrationtest/ws/repository/local/"))(Resolver.ivyStylePatterns), | ||
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" | ||
) | ||
// The Typesafe repository | ||
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | ||
|
||
addSbtPlugin("play" % "sbt-plugin" % "2.0-RC1-SNAPSHOT") | ||
|
||
addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.0") | ||
// Use the Play sbt plugin for Play projects | ||
addSbtPlugin("play" % "sbt-plugin" % "2.0") |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.