g8 template to get a Scalatra web service up and running quickly.
- Install giter8 (g8)
- Get the g8 template and run it:
$ g8 scalatra/scalatra-sbt
$ cd <name-of-app>
$ ./sbt
> container:start
- Open http://localhost:8080/ in your browser.
- Install sbt, version 0.13.0 or higher.
- Fork scalatra/scalatra-sbt.g8 on GitHub to your account. Let's assume your account is "foo".
- Clone it.
$ git clone [email protected]:foo/scalatra-sbt.g8.git
- Now make your desired changes.
- Do a local deploy of your modified template and try it out.
$ sbt
> g8Test # must result in SUCCESS
> exit
$ cd target/sbt-test/default-*/scripted
$ sbt
$ container:start
$ browse # starts browser for you, or manually open http://localhost:8080 to verify
- If you like your new template, push it to GitHub.
$ cd /path/to/scalatra-sbt.g8.git
$ git push
- You can now access your modified template using g8.
$ cd
$ g8 foo/scalatra-sbt.g8
- If you'd like to share your changes, send a pull request.