A framework for offline PC application based on node-webkit, Backbone Aura, Twitter Bootstrap, and Yase. The application can be run on web server too.
create a new folder unzip the archive in that folder ( or git clone https://github.com/yapcheahshen/ksanapc.git )
npm install yadb yase refinery
to run as server mode
npm install socket.io
install node-webkit in node_webkit subfolder https://github.com/rogerwang/node-webkit win_ia32 osx_ia32
third party javascript library, e.g, jQuery , Backbone, require.js, "require" are replaced to "requirejs" to avoid name conflict.
bootstrap twitter and other public css
Backbone Aura extensions and common widgets
the web server
####ydb default folder for ydb data file
- current folder
- other folder // for testing ydb
- ydb folder // for public release ydb
ydbexplorer, A sample application to explore the content of ydb
slotfilter, Yase sample, https://github.com/yapcheahshen/slotfilter
cd slotfilter
run
cd node_server
node server
start http://127.0.0.1:2555/ydbexplorer/
node makezip [appname]
create a zip for deploying, including node-webkit runtime, which could be run on PC without git and node.js pre-installed.
create a repo on github, and clone onto ksanapc folder, for example: https://github.com/user/myrepo
node scaffold myrepo
scaffold.js will copy files from %scaffold% and replace id string inside the files.