What is BothIO?
Simply, it's a library based on the CQS-Princip, where your methods are separated by commands and queries.
What BothIO makes so special is the NodeJS/Client-Support, so you can execute your commands and queries from your node-side as well as from your client-side.
Example
var myToDoList = ; // # Define a Command// Server:both; // Execute a Command// Client:; // Listen to a defined Command// Server:both; // Listen to all Commands// Client:both; // # Add a Callback// Server:both; // Client:
And there's something more planed
Battle-Tested
This project is used at the entertain.io platform.
Contribute
BothIO uses the new ES6 standard and is tested with mocha, plus we package the code with webpack.
You want contribute? Here is how you start:
Clone repo
git clone git@github.com:michaelzoidl/both.io.git
Run the unit-tests
npm run test
Pack the code and save it in the dist-folder
npm run pack
Develop, it starts a mocha-watcher
npm run develop