What is this?
NPM dependencies and CommonJS
Server side environment expected to be NodeJS.
Client side supported with Ender.
lib-common - common functionality for server and client.
lib-server, lib-client - server and client side wrapper of lib-common.
test-serever, test-client - server and client side lib consumers.
All packages are not in NPM repository, so we need to manually link all dependencies.
Link packages (for local environment)
Using Ender to compile client scripts
This step is optional, result included in source.
sudo npm install ender -g
Build ender lib
cd test-client ender build
Run client test
/test-client/test.html in your browser.
Run server test
cd test-server node main.js