Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Commit

Permalink
Project launched! 🎆
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmuller committed Apr 28, 2013
0 parents commit 8617d42
Show file tree
Hide file tree
Showing 29 changed files with 10,219 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
@@ -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
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS}
23 changes: 23 additions & 0 deletions README
@@ -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
37 changes: 37 additions & 0 deletions app/Global.scala
@@ -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)

}
1 change: 1 addition & 0 deletions app/assets/javascripts/main.js
@@ -0,0 +1 @@

24 changes: 24 additions & 0 deletions app/assets/javascripts/plugins.js
@@ -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.

0 comments on commit 8617d42

Please sign in to comment.