Skip to content

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

License

nudemeth/scalatra-react-isomorphic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published