如何在离线运行的打包的Chrome应用程序中创build本地服务器?

我想在Chrome应用程序中创build一个Node.js服务器,以便能够通过它运行node.js应用程序。 该应用程序将运行,因此服务器必须是本地的。

由于我无法在Chrome应用中执行设置,因此我使用了node-webkit来使我的项目工作并将我的项目设置为

一般信息
Express Server在端口号3000上启动。
EJS用于ExpressJS的HTML渲染器
PeerJS Server在端口号9000上启动。
IndexedDB用于数据库目的。
PouchDB被用作IndexedDB的包装
blueimp-file-upload用于FTP over express服务器。
AngularJS用于创build前端模块。
LUMX被用作UI框架。
jQuery is used for DOM Manipulation
Velocity用于更stream畅的animation。

完整的代码可以在我的github pulic回购https://github.com/sumitkumar1209/PQ-PinQuip-Messenger

Interesting Posts