background preloader

Node.JS

Facebook Twitter

Creating Your First AppJS App with Custom Chrome « studio. It seems AppJS is no longer being updated or maintained for the time being.

Creating Your First AppJS App with Custom Chrome « studio

For a similar platform, check out node-webkit which is backed by Intel Open Source and is consistently being improved and updated. I’ll write a new tutorial for node-webkit sometime in the future. Also, despite the legacy name, node-webkit uses Chromium as its base, so it is now using the Blink rendering engine. Over the past few months, I’ve been studying up and trying out several cross-platform development solutions and one of the more interesting ones I’ve found, as a web designer and developer, is AppJS. It allows development for the desktop for all three major desktop operating systems using the mix of technologies commonly known as HTML5 and node.js. Of course, I’ve also been using Adobe AIR since it was introduced, though AIR for HTML isn’t all that great in my experience.

Downloading and Extracting AppJS Visit the AppJS website and choose the correct version of the distributable for your operating system. Execute A Unix Command With Node.js. Creating a REST API using Node.js, Express, and MongoDB. Node.js: A Todo App with Express. So last time we installed Node & did the traditional "Hello World" example with Node & then using the Express framework.

Node.js: A Todo App with Express

Today we're going to make a simple app using Express from the beginning. We will generate the app with Express & then explore Express further, including Unit testing. This will most likely be a multi-part tutorial. The app we're building is a very simple "To Do" application. I know it's boring, but it's simple enough that we can focus on Express & Node rather than the implementation of the app.

The first thing to do is install Express globally: I am presuming here basic knowledge of Node, NPM & Express. Installing Express globally will give us the express command in our command line & we can use this to generate our new app: express new JSPlaygroundToDo You should see something like this: Express has set up the basic skeleton of our application for us. Once that's done, lets just run it & see what we have. Rename app.js to server.js.Tell NPM to look for app.js. !!! How I Got Node.js Running On A Linux Micro Instance Using Amazon EC2. In the past, I've dabbled with Node.js (a server-side JavaScript runtime environment) on my local MacBook Pro.

How I Got Node.js Running On A Linux Micro Instance Using Amazon EC2

If you know JavaScript, it's not too hard to get something up and running on your local machine. Putting Node.js out into the wild, however, is whole other beast. Not only am I mediocre at managing web servers in general, I happen to know almost nothing about Amazon EC2 (Elastic Compute Cloud), Linux / Unix, Git, SSH, ports, routing, processes, and just about everything else that goes into managing a Node.js deployment. After a couple of hours, some online tutorials, and a bit of trial and error, I finally got something working! I managed to keep a Node.js process running on a Linux Micro instance on Amazon EC2! DISCLAIMER: I could not do any of this without the knowledgable guidance of many other blogs. I wanted to see if I could get Node.js up and running using manual labor. Enter the name of your key pair. This should take you into the launch wizard. Now click Launch. . #! #! #!