Modern Web Template
AngularJS - Scala - Play - Guice - PlayReactiveMongo
A full application stack for a Modern Web application, lets review the components:
- Take a look at what the google cool kids are upto here : AngularJS
Bootstrap - Bootstrap components written in pure AngularJS
PlayFramework - currently using 2.3.9 with the scala API
Guice integration for Dependency injection,
- Special thanks to the typesafehub team for their activator : Play-Guice
PlayReactiveMongo gives interaction with MongoDB providing a non-blocking driver as well as some useful additions for handling JSON.
- Check out their GitHub: Play-ReactiveMongo
Your development environment will require:
Once the prerequisites have been installed, you will be able to execute the following from a terminal.
../modern-web-template > sbt run
This should fetch all the dependencies and start a Web Server listening on localhost:9000
[info] Loading project definition from ../modern-web-template/project [info] Set current project to modern-web-template [info] Updating modern-web-template... ... [info] Done updating. --- (Running the application from SBT, auto-reloading is enabled) --- [info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000 (Server started, use Ctrl+D to stop and go back to the console...)
Note: This will create a MongoDB Collection for you automatically, a freebie from the Driver!