html5 totop,GitHub - juzerali/appjs: SDK on top of nodejs to build desktop apps using HTML5/CSS/JS

AppJS

AppJS is an SDK to develop desktop applications using Node.js melded with Chromium. With AppJS you can develop desktop tools and applications using the same libraries and knowledge used to build websites. You get all the following in one package:

JS, HTML5, CSS, SVG, WebGL provided by Chromium

mature http/https servers and client APIs - Node

filesystem, dns, cryptography, subprocesses, OS APIs - Node

sandboxed code execution environements virtual machines - Node

tools for exposing native C++ bindings to JavaScript- Node

Mailing List: mailing list

IRC: #appjs at irc.freenode.net

30 Second Quickstart

The below packages include everything needed to get started with AppJS, including Node.js, all dependencies, binaries, and a launcher ready to go out of the box. 1.) Extract to a folder. 2.) Double click on launch. 3.) Hello World.

AppJS 0.0.20 Distributables:

Linux 32 bit / 64 bit -> app.sh

Mac -> app.sh

Windows -> app.exe

npm install

OS X install is currently broken

AppJS can be now be installed via npm.

npm install appjs

AppJS requires 32bit Node on OS X. It works on 64bit OS X but Node must be 32bit. We're working on solving this, but it's a limitation of Chrome itself so it's a work in progress.

Help us gain traction by starring this chromium issue.

One Minute Usage Overview

var app = module.exports = require('appjs');

app.serveFilesFrom(__dirname + '/content');

var window = app.createWindow({

width : 640,

height : 460,

icons : __dirname + '/content/icons'

});

window.on('create', function(){

console.log("Window Created");

window.frame.show();

window.frame.center();

});

window.on('ready', function(){

console.log("Window Ready");

window.require = require;

window.process = process;

window.module = module;

window.addEventListener('keydown', function(e){

if (e.keyIdentifier === 'F12') {

window.frame.openDevTools();

}

});

});

window.on('close', function(){

console.log("Window Closed");

});

Shared Contexts

38dd44056650be1d52beefacc70b189c.png

f6a30b2a897b3f6c5345bdef0083908d.png

License

The MIT License

Copyright (c) 2012 The AppJS Authors

See the LICENSE file for details.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值