This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
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
0 parents
commit 8617d42
Showing
29 changed files
with
10,219 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Extracted from https://github.com/ulrich/macaron-factory/blob/master/.gitignore | ||
# Ignore all dotfiles... | ||
.* | ||
# except for .gitignore | ||
!.gitignore | ||
|
||
# Ignore Play! working directory # | ||
db | ||
eclipse | ||
lib | ||
log | ||
logs | ||
modules | ||
precompiled | ||
project/project | ||
project/target | ||
target | ||
tmp | ||
test-result | ||
server.pid | ||
*.iml | ||
*.eml |
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 @@ | ||
web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS} |
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,23 @@ | ||
PlayFramework Spring Data Neo4j Template | ||
---------------------------------------- | ||
PlayFramework + Spring Data Neo4j skeleton project. | ||
|
||
Server-side: | ||
- SpringFramework | ||
- Spring Data | ||
- Spring Data Neo4j | ||
- CDI (javax.inject) | ||
|
||
Front-end: | ||
- Twitter Bootstrap | ||
- JQuery | ||
- HTML5 Shiv | ||
|
||
Heroku Deployment | ||
----------------- | ||
First, create your application and add the Neo4j Add-on. | ||
|
||
Before you do the 'git push heroku master' read the comments at `conf/applicationContext.xml`, and adjust the Heroku app environment variables. | ||
|
||
Resources: | ||
https://devcenter.heroku.com/articles/neo4j |
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,37 @@ | ||
import org.springframework.context.ApplicationContext | ||
import org.springframework.context.support.ClassPathXmlApplicationContext | ||
import play.api._ | ||
|
||
object Global extends GlobalSettings { | ||
|
||
/** | ||
* Declare the application context to be used. | ||
*/ | ||
val ctx = new ClassPathXmlApplicationContext("applicationContext.xml") | ||
|
||
/** | ||
* Sync the context lifecycle with Play's. | ||
* @param app | ||
*/ | ||
override def onStart(app: Application) { | ||
ctx.start() | ||
} | ||
|
||
/** | ||
* Sync the context lifecycle with Play's. | ||
* @param app | ||
*/ | ||
override def onStop(app: Application) { | ||
ctx.stop() | ||
} | ||
|
||
/** | ||
* Controllers must be resolved through the application context. There is a special method of GlobalSettings | ||
* that we can override to resolve a given controller. This resolution is required by the Play router. | ||
* @param controllerClass | ||
* @param A | ||
* @return | ||
*/ | ||
override def getControllerInstance[A](controllerClass: Class[A]): A = ctx.getBean(controllerClass) | ||
|
||
} |
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 @@ | ||
|
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,24 @@ | ||
// Avoid `console` errors in browsers that lack a console. | ||
(function() { | ||
var method; | ||
var noop = function () {}; | ||
var methods = [ | ||
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | ||
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | ||
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | ||
'timeStamp', 'trace', 'warn' | ||
]; | ||
var length = methods.length; | ||
var console = (window.console = window.console || {}); | ||
|
||
while (length--) { | ||
method = methods[length]; | ||
|
||
// Only stub undefined methods. | ||
if (!console[method]) { | ||
console[method] = noop; | ||
} | ||
} | ||
}()); | ||
|
||
// Place any jQuery/helper plugins in here. |
Oops, something went wrong.