Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.19 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.19 KB

scalatra-react-isomorphic

An example of light weight isomorphic web application using Scalatra as a back-end framework and React as a front-end framework. Nashorn or J2V8 is used for server rendering.

Prerequisites

  1. Java >= 1.8.0_144
  2. NodeJs >= 6.11.3
  3. sbt >= 1.0.2

Build & Run

$ cd [working directory]
$ ./sbt
> jetty:start
> browse

If browse doesn't launch your browser, manually open http://localhost:8080/ in your browser.

Packaging

$ cd [working directory]
$ ./sbt
> assembly

Embedded Jetty is used to create standalone jar.

assembly task will compile your project, run your tests, and then pack your class files, all your dependencies and webapp resources into a single JAR file: target/scala_X.X.X/projectname-assembly-X.X.X.jar. If you want more configurable, please have a look at sbt-assembly.

Bugs and Issues

Have a bug or an issue with this template? Open a new issue

License

Code released under the Unlicense license