A minimal Ringo/Scala hybrid app targeting deployment to Heroku.
JavaScript Scala CoffeeScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
config
jars
lib
packages
project/plugins
public/stylesheets
sbt_jars
src
templates
.gitignore
Procfile
README.md
build.sbt
pom.xml
run.jar

README.md

JVM NG App

This is a minimal RingoJS/Scala hybrid app targeting deployment to Heroku.
Its web layer is based on Stick and its persistence layer on Rogue.

Dev

The app's persistence layer depends on MongoDB, so start it:

$ mongod

To run the app locally launch ringo
with the main script via foreman:

$ gem install foreman
$ foreman start

Then point your browser to this URL:

http://localhost:5000/

To compile + package Scala & CoffeeScript on-the-fly
via sbt 0.10:

$ sbt
> ~package

BTW, for compiling/packaging once just leave off the ~.

To make an assembly of all sbt project lib dependencies:

$ sbt
> assembly:package-dependency

Deploy

$ gem install heroku
$ heroku create --stack cedar
$ heroku addons:add mongolab
$ heroku config

Now, adjust src/main/resources/props/production.default.props accordingly.
Plus, rebuild scala-app.jar (via > package) to include this config update.

$ heroku config:add LIFT_PROD=-Drun.mode=production
$ heroku config:add RINGO_PROD=--production
$ git commit -am 'Make it ready for production.'
$ git push heroku master
$ heroku open