For those of you who love Sencha Touch as much as we do, we are pleased to announce the immediate availability of Touch Node – a Node.js module that will enable you to leverage your knowledge on the back-end as well as the client.
Touch Node takes Sencha Touch (version 2.3.1 as of this writing) strips out all of its DOM-related functionality (Element, Component, Scroller, etc…) and leaves a headless and intact Class System, Loader, Utilities and more.
While working on a Node.js application we found a need for creating classes with inheritance. After looking through the available modules published on the npm registry, we found that there was nothing that fit our requirements. We realized that Sencha Touch solved our needs precisely. Many of the issues that Sencha solved on the client side in terms of code organization, inheritance, and dependency injection can be applied to the back-end.
Touch Node contains the following functionality:
- Sencha Touch Class System
- Dependency Loader (Ext.Loader)
- Data Package (Model, Store, Proxy)
- and more…
Installation & Usage
Installation The simplest way to get Touch Node into your Node.js app is through NPM:
npm install touch-node
Usage Inside your code, the module exports the
var Ext = require('touch-node');
For an example of the module in action, please see the
examples directory in the module or in the GitHub repo
Here are some useful links and related readings: