So there is a Mac side and an Ubuntu side to my personality, what can I say. And when on my Mac, when it comes to sftp clients Cyberduck is cute, and cool and everything, but being me I just like Fugu more. Like that "Commander" split window look.
One of the things I like about it is the Command-J remote file editing which is quick and snappy. However, the preferences don't allow you to specify ad-hoc editors. So how do I get my beloved MacVim to work with remote file editing (making the combination of Fugu + MacVim a nifty IDE or at least environment I can think in)?
Searching led me to part of the answer, good old jessie wrote about this back in 2006 at http://www.jessiemihalik.com/articles/2006/08/16/customizing-the-editor-...
However, specifying /Applications/MacVim.app didn't work for me; instead I said for it to be invoked as a binary at /usr/bin/Vim.
Steps I took:
I've written about vim as an IDE before. In this case, however, in order to prepare for node hacking, and also in line with a recent discussion about IDE's on the node mailing list, I'm documenting here notes I made while getting geared up with gvim (macvim) for SSJS development with some of the more important plugins that were mentioned (you know, it's that "so how do I actually do this" moment) (this should all work fine on either MacBook Pro or Ubuntu/Linux):
This article rounds up what is available on the internet right now for getting started with Node.js, and includes a gem at the beginning a special recommendation at the end.
- Ryan Dahl's 2009 presentation of Node.js at JSConf 2009
As cited in the Node.js mailing list, this gem is still best single intro to the concepts, architecture and general overview of Node.js despite the passing of two years (a long time in SSJS land!).
- 7 Free E-Books and Tutorials for Learning and Mastering Node.js lists several sources, and I will outline a general description of each below.
- edit (best dive in deep free resource): The "Let's make a web app" series of articles and accompanying github repo commits conforming the Nodepad editor project (built on Node.js, Express.js and MongoDB) on the dailyjs.com blog, written by Alex Young. Continually updated by Alex as different versions of node, npm, etc. emerge, it will "walk you through building a web app with Node, covering all the major areas you’ll need to face when building your own applications."
- edit (deserves special mention): Hands-on Node.js http://nodetuts.com/handson-nodejs-book.html
You can download the first 60 pages of this $3.99 book for free. My verdict: looks like it actually gives devs what they need to start building applications. Will write review after working with it.
- edit: http://www.ibm.com/developerworks/cloud/library/cl-nodejscloud/
Sometimes the simplest, easiest things are not documented anywhere, or at least, not documented very clearly, so I just thought I would document what I did here in order to get started running the examples provided in the full Express codebase.
Let's suppose that node and npm are already installed and I am in the home directory of a Linux user. I do:
$ git clone https://github.com/visionmedia/express.git express_examples
and Express is cloned to the express_examples subdirectory. I then change into that directory:
$ cd express_examples
and tell the npm package manager to check for all dependencies (if you are on the Express mailing list see discussion at http://groups.google.com/group/express-js/browse_thread/thread/166a75fdb...):
$ git submodule update --init
$ npm install
The package manager npm will now do a lot of work and pages will scroll by. After a short while the trundling will stop and a ./node_modules directory will be filled with dependencies.
Then you can run any example you like:
In this series of articles we'll see how to set up a Cloud App Server with CouchDB and Node.js on Ubuntu 10.04 LTS, and why.