To start a new project, do the following:
- Install giter8
- g8 JanxSpirit/scalatra-mongodb
- cd *project-name*
- sbt
- jetty-run
- browse to http://localhost:8080/test
- If you want an executable jar, run 'assembly' at the SBT prompt
- If you want to create a standalone shell command wrapping that jar, run something like 'cat src/main/resources/execute_jar.sh target/scalatra-mongodb-project-assembly-1.0.jar > target/scalatra_mongo'
Hopefully this template is helpful. Cheers!
No comments:
Post a Comment