AngularJS - Scala - Play - Guice - PlayReactiveMongo
A full application stack for a Modern Web application, lets review the components:
-
AngularJS - client side javascript framework for creating complex MVC applications in Javascript, fronted with Twitter bootstrap CSS framework, because well, im not a web designer.
- Take a look at what the google cool kids are upto here : AngularJS
-
Bootstrap - Bootstrap components written in pure AngularJS
-
CoffeeScript - CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
-
PlayFramework - currently using 2.3.4 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
Here the original activator template
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 > ./activator 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!