Skip to main content

Develop desktop app using Node-webkit Node.js is built on Chrome V8 JavaScript engine. V8 is one of the fastest JavaScript engine which runs inside of your chrome browser. Node Organisation You can install node-webkit in Linux,Windows and MacOS. Here is direct link to download node-webkit package for your system. You don’t need to install it, just place it somewhere and proceed with tutorial. Windows : Download Node-webkit for Windows (32 bit) (64 bit). Linux : Download Node-webkit for Linux (32 bit) (64 bit). Mac : Download Node-webkit for MacOS (32 bit) Hello Node-webkit Program ! To get you started let’s build sample program which prints “Hello World !” on screen using node-webkit. Hope you have downloaded and extracted the node-webkit files. Package.json { "name" : "nw-demo", "main" : "index.html", "window" : { "toolbar" : true } } You don’t need to install any dependency here. Just save the file and create index.html file in same folder. index.html Hello Node-webkit!

Node-webkit!

Now open up Terminal or Command prompt and switch to the directory where node-webkit installer files are present. To run above code type this : /path/to/node-webkit-installer/nw /path/to/our-project/ . Here is the output: Screenshot from 2015-01-27 16:49:08 I run the code using following command. Screenshot from 2015-01-27 16:49:32 Our application : Will develop node-webkit app with Google custom search engine. This app will allow you to search inside codeforgeek.com. Directory Structure : -- index.html -- package.json package.json { "name" : "nw-demo", "main" : "index.html", "window" : { "toolbar" : false } } index.html Google search Application Node-web Project After running this app you will see output More about Node-webkit ! One of the great advantage of Node-webkit is you can use any node-package you want directly in your desktop app ! Yes it’s right. Now all the awesome node-package will be available for Desktop app. For more information about Node-webkit Windows,Menu’s, Events please visit Wiki of Node-webkit from Here

Comments

Popular posts from this blog

Learn Nodejs

My favorite resource is "nodeschool.io!" "Install these choose-your-own-adventure style lessons and learn how to use node.js, npm and other related tools by writing code to solve realistic problems. The lessons run in your terminal and work on Windows, Mac and Linux."   Tutorials Hello World Hello World Web Server Node.js guide Build a blog with Node.js, express and mongodb Node.Js Tutorials At Project 70 Node.js for Beginners Learn Node.js Completely and with Confidence Videos Node tuts Introduction to Node.js with Ryan Dahl Node.js: Asynchronous Purity Leads to Faster Development Parallel Programming with Node.js Server-side JavaScript with Node, Connect & Express Node.js First Look Node.js with MongoDB Ryan Dahl's Google Tech Talk Screencasts Learn All The Nodes NodeTuts NodeCasts Books " The Node Beginner Book Mastering Node.js Up and Running with Node.js Node.js in Action Smashing Node.js: JavaScript Ev...

Integrating Elastic Search With Mongodb Using No-SQL

An insight about search engine: An application which provides the searched results of documents over the web for some itemized keywords. Here a series of document are found out which contains those specified keywords. Moreover, search engine is a pack of programs usually framed to be the Systems. More often than, Web Search engines perform its work by transmitting the data packets to retrieve the maxim amount of docs. Then an Indexer goes through these documents and formulates an Index depending on word count for every document. Several search engines use a varied algorithm to build Indices in such a way that uniquely worthy outcome is delivered to each & every query. Elastic search, Bobo Search, Index Tank, Apache Solr, Summa, Compass, Katta, Constellio ETC. are some of the search engines which are available in the Market. Also, every search engine has their own idiosyncrasy. An insight about Elastic search: Elastic Search is an immensely extensive Open Source sear...

mynodejs

Event-driven programming can be overwhelming for beginners, which can make Node.js  difficult to get started with. But don't let that discourage you; In this article, I will teach you some of the basics of  Node.js  and explain why it has become so popular. Asynchronous Programming Node.js  uses a module architecture to simplify the creation of complex applications. Chances are good that you are familiar with asynchronous programming; it is, after all, the "A" in Ajax. Every function in  Node.js  is asynchronous. Therefore, everything that would normally block the thread is instead executed in the background. This is the most important thing to remember about  Node.js . For example, if you are reading a file on the file system, you have to specify a callback function that is executed when the read operation has completed. You are Doing Everything! Node.js  is only an environment - meaning that you have to do everything yourself. There...