appengine-scala-starter

App Engine Scala Template with Unfiltered and Scalate

APACHE-2.0 License

Stars
10

App Engine Scala Template

A template project with Scala and Unfiltered on Google App Engine.

Prepare

Java 7 or later is required.

Install App Engine SDK (mandatory) and JRebel (recommended).

gcloud components update gae-java

Set environment variables in .bashrc or .zshrc.

export APPENGINE_SDK_HOME=$HOME/Library/google-cloud-sdk/platform/appengine-java-sdk
export JREBEL_PATH=$HOME/Library/jrebel/jrebel.jar

Run

Run sbt.

sbt

Start the development server.

appengineDevServer --port=8888

Deploy

Run sbt.

sbt

Start the development server.

appengineDeploy --oauth2

Structure

  • src/main/scala/ - Scala sources of the product
  • src/test/scala/ - Scala sources of the test
  • static/public/ - Static files
  • static/target/ - Compiled assets
  • build.sbt - Scala dependencies
  • appengine.sbt - App Engine dependencies
  • scalate.sbt - Scalate dependencies
  • target/webapp/ - (output) Web application to be run or deployed