This is a little playground for cutting-edge single-page JS app dev.
Mentioned Node packages are installable via npm
.
Usage example:
$ npm install coffee-script
First of all, build backend:
$ cd backend
$ sbt
> update
> package
(FYI: one can use assembly
task to make a deployable JAR incl. dependencies.)
Then, start MongoDB server, e.g.:
$ mongod
And backend API server:
$ cd backend
$ ./run-blueeyes.sh
Backend config resides in backend/src/main/resources/blueeyes.conf
, BTW.
Now, launch frontend dev server:
$ cd frontend
$ cake run:express
Finally, point your browser to localhost:3333
and enjoy hacking.
FYI: frontend source code resides in src
, (on-the-fly) compiled code in public
.
Additionally, deployable frontend code can be found in build
and (re)built via:
$ cake build
BTW, Google Closure compiler is used for JS minification and optimization.
Frontend test suite can be run as follows:
$ cake test
Frontend documentation can be (re)generated in public/docs
via:
$ cake gen:docco