zimolo/release0 — pull request #2 by tyrelltle (2014-10-31 05:35:24+00:00)
Title: new changes to support DDD and CQRS

A mini framework is wrotten to support command,query, domain event design patterns of DDD and CQRS architecture.

remove all the library files and updated the dependencies.json

add Mocha.js unit testing. the test cases are in newly added test folder

restructured the directory, to moved controller folder into lib/[domain]/application folder. bassically, controller is part of application layer of a bounded context (DDD term). therefore controller folder does not belong to higher level directory
***********************************new features added************************************
two RESTful Service added to demonstrate use of my mini framework of DDD/CQRS.
they are:
(1) update user profile
(2) read all the user data

to test (1), make sure your mongodb has created zimolodb database, and have user collection with at least one document recored.
use a RESTful client like Fiddler, to POST JSON
{"username":"admin","firstname":"asdasd","lastname":"asd"}
to http://localhost:8080/user/updateuserinfo

as a result, the user document matching username field of the JSON, (ex, admin), will have updated firstname and lastname

To test (2), simply do a GET request, ex, using browser directly access http://localhost:8080/user/alluser.
It will return all the user information in your database