Skip to content
Run ExtJS4 data models on Node.js
JavaScript
Find file
Latest commit c3370a1 Jun 8, 2012 @egorFiNE cleanup, acknowledgment.
Failed to load latest commit information.
proxy initial Sep 15, 2011
test renamed Sep 15, 2011
.gitignore initial Sep 15, 2011
Ext-more-srv-4.1.0.js Update to ExtJS 4.1.0. Jun 7, 2012
README.md cleanup, acknowledgment. Jun 8, 2012
index.js Update to ExtJS 4.1.0. Jun 7, 2012
package.json Update to ExtJS 4.1.0. Jun 7, 2012

README.md

node-extjs

Run ExtJS4 data models in Node.js

This node.js module is providing support for using ExtJS4 data models on server-side.

Installation

I cannot redistribute ExtJS with this module, so you will not be able to install it from npm repository directly

However, installation via npm is easily done manually:

  1. Download ExtJS from http://www.sencha.com/products/extjs/download/
  2. Extract it
  3. Copy contents of src/ into lib/Ext/ in here
  4. npm install .

Usage

Basically, all it takes is require('extjs'). Warning: a common mistake is to do Ext=require('extjs'). Don't.

See also test/ folder for usage examples (you'll need nodeunit to run them).

Proxies

If you get an error complaining about proxy module not found - create an empty file, like proxy/rest.js. Yes, it's a hack. Blame me.

TODO

I have a basic support for node-mysql here, however it's not elegant in the ExtJS world (i.e. it's not a Reader/Writer), so not yet published. Any suggestions regarding that? I'm all ears!

Acknowledgments

Thanks

This implementation is basically taken from n-ext, which is another module for server-side usage of ExtJS. My implementation is a tiny bit lighter.

Contributors:

  • Alexey Torkhov

License

Do whatever you want with software as long as you are in compliance with ExtJS license.

Also I redistribute a part of Ext Core with this package: a bit stripped version of Ext-more.js. A significant piece of browser-related code is removed from it.

Author

Egor Egorov me@egorfine.com

Something went wrong with that request. Please try again.