May 17, 2014
Getting up and coding
We have our source control repository setup. Now it is time to get our machines ready to write some code. That means installing some tools.
Love thy terminal
We are going to be spending some quality time with our terminal. If you are a typically Windows user, this might be a tab bit scary. It’s okay. We’ll give you some love shortly.
I use a Mac at home, so I’ll mostly focus on that platform. If you are running Linux, you are a smarty pants and you can figure things out for yourself. I’ll give you Windows users a push in the right direction shortly.
On the Mac, I like a terminal replacement called iTerm. It’s got some nice features, and supports tabs.
Some windows love
Okay, Windows users, let’s chat. First, it’s cool. You are in a safe place here. Nobody is laughing at you or calling you names. You’ll be happy to know that most everything just works when it comes to Node development on Windows. Really.
There are some neat tools just for your platform too.
- chocolatey: A package manager. Like
- posh-git: A nice set of Git extensions for PowerShell.
- ConEmu: A slick console emulator.
My instructions will tool installation will be focused on the Mac, but you can easily figure out how to get your machine setup.
Relax, have a Homebrew
Back on the Mac, there’s a super simple way to manage the installation for our dev tools. Homebrew! If you don’t have it installed, do it now. You can install it by pasting the following command into a Terminal window:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
You are welcome.
To work on our project, we will start out with three tools: Git, Node, and a Text Editor.
You can install Git via Homebrew:
brew install git
You can also install Node with Homebrew:
brew install node
Text Editors are mostly a personal decision. Hell, if you are sick in the head, you could even use vim . I lean more towards the full-featured IDE side. Hence, I use WebStorm by JetBrains. It is awesome and inexpensive. Or, you can checkout TextMate 2 or Atom.
Now we have everything we need to do our thing. Let’s copy our GitHub repository down so we can get working next time. To do that, just go to your terminal and type:
git clone firstname.lastname@example.org:isnotnil/pointless-chat-demo.git
Please remember that
git clone will automatically create a directory for your repo. In this case, the directory will be
pointless-chat-demo. So make sure you run this from the directory that you want to be the parent of the repository directory.
Okay, that’s all for today. Up next, we’ll stand up a simple web server in Node using express.