To download these lessons, type the following commands in the terminal window:
$ curl -L http://git.io/_ScX3Q | tar -xz
Our Programming Environment
Since node is a command line program, the majority of our programming will occur on the command line. On Macs, the command line can be accessed through the Terminal application.
The command line is a text interface to your computer which allows you to write and edit software, navigate the file system and execute programs, among many other things.
Here are a few basic commands to get you started:
lsstands for list.
lswill list the files and sub-directories in you current directory. For example, in a directory called Cookie Recipes,
lsmay yield the following list: ChocolateChip.txt Oatmeal.txt
cd [some directory]-
cdstands for change directory. The parameter you pass to
cdis the directory you will be taken to. For example:
cd ~/Desktop/will take you to your Desktop directory.
clearclears the console screen, giving you a blank slate to work with.
This course will use Vim as it's command line text editor.
Vim is an extremely powerful, yet minimal text editor. I guarantee that not only will Vim become your preferred way to edit code, but it will also become your preferred way to edit text in general.
To quickly setup Vim before we begin, please run the following command in this projects root directory:
For a gentle introduction to Vim, please run the
vimtutor command on the
(The MIT License)
Copyright (C) 2012 by Siddharth Mahendraker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.