Skip to main content

Posts

Showing posts with the label nodejs
Learn Meteor and Build a real-time polling app Install Meteor download for windows: https://install.meteor.com/windows install for osx/linux: curl https://install.meteor.com/ | sh open cmd and type meteor --version Meteor comes with a few demo applications that you can try out. If you want to check out a few demo apps now, you can go into your command line and grab the demo application using: // todo sample app meteor create --example todos // example mobile application meteor create --example localmarket Once you create a demo app, just cd into that project and run the application with: meteor This will grab the necessary packages, bundle all the css and js, start your application using a Node server, and make it viewable in your browser. http://localhost:3000 Here is the sample Todos application which is quite good looking: meteor-demo-todos Definitely click around the files in these demo applications and you’ll see how Meteor apps tick. Let’s move onto creating our own a...

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...