@@ -47,20 +47,23 @@ really digging into it. If you're looking for a shorter introduction to AngularJ
4747# Working with the code
4848
4949You can follow this tutorial and hack on the code in either the Mac/Linux or the Windows
50- environment. Options for working with the tutorial are to use the Git versioning system for source
51- code management or to use scripts that copy snapshots of project files into your workspace
52- (`sandbox`) directory. Select one of the tabs below and follow the instructions for setting up your
53- computer for your preferred option.
50+ environment. The tutorial relies on the use of Git versioning system for source code management.
51+ You don't need to know anything about Git to follow the tutorial. Select one of the tabs below
52+ and follow the instructions for setting up your computer.
5453
5554<div class="tabbable" show="true">
5655 <div class="tab-pane well" id="git-mac" title="Git on Mac/Linux">
5756 <ol>
58- <li><p>Verify that you have <a href="http://java.com/">Java</a> installed by running the
59- following command in a terminal window:</p>
60- <pre>java -version</pre>
61- <p>You will need Java to run unit tests.</p></li>
62- <li><p>Download Git from the <a href="http://git-scm.com/download">Git</a> site.</p>
63- <p>You can build Git from source or use the pre-compiled package.</p></li>
57+ <li><p>You will need Node.js and Testacular to run unit tests, so please verify that you have
58+ <a href="http://nodejs.org/">Node.js</a> v0.8 or better installed
59+ and that the <code>node</code> executable is on your <code>PATH</code> by running the following
60+ command in a terminal window:</p>
61+ <pre>node --version</pre>
62+ <p>Additionally install <a href="http://vojtajina.github.com/testacular">Testacular</a> if you
63+ don't have it already:</p>
64+ <pre>npm install -g testacular</pre>
65+ <li><p>You'll also need Git, which you can get from
66+ <a href="http://git-scm.com/download">the Git site</a>.</p></li>
6467 <li><p>Clone the angular-phonecat repository located at <a
6568href="https://github.com/angular/angular-phonecat">Github</a> by running the following command:</p>
6669 <pre>git clone git://github.com/angular/angular-phonecat.git</pre>
@@ -71,76 +74,40 @@ directory.</p></li>
7174 <p>The tutorial instructions assume you are running all commands from the angular-phonecat
7275directory.</p></li>
7376 <li><p>You will need an http server running on your system. Mac and Linux machines typically
74- have Apache pre-installed, but If you don't already have one installed, you can <a
75- href="http://nodejs.org/#download">install node.js</a>. Use <code>node</code> to run
76- <code>scripts/web-server.js</code>, a simple bundled http server.</p></li>
77+ have Apache pre-installed, but If you don't already have one installed, you can use <code>node</code>
78+ to run <code>scripts/web-server.js</code>, a simple bundled http server.</p></li>
7779 </ol>
7880 </div>
7981
8082 <div class="tab-pane well" id="git-win" title="Git on Windows">
8183 <ol>
82- <li><p>You will need Java to run unit tests, so run the following command to verify that you
83- have <a href="http://java.com/">Java</a> installed and that the <code>java</code> executable is on
84- your <code>PATH</code>.</p>
85- <pre>java -version</pre>
86- <p></p></li>
87- <li><p>Install msysGit from <a href="http://git-scm.com/download">the Git</a> site.</p></li>
88- <li><p>Open msysGit bash and clone the angular-phonecat repository located at <a
89- href="https://github.com/angular/angular-phonecat">Github</a> by running the following command:</p>
84+ <li><p>You will need Node.js and Testacular to run unit tests, so please verify that you have
85+ <a href="http://nodejs.org/">Node.js</a> v0.8 or better installed
86+ and that the <code>node</code> executable is on your <code>PATH</code> by running the following
87+ command in a terminal window:</p>
88+ <pre>node --version</pre>
89+ <p>Additionally install <a href="http://vojtajina.github.com/testacular">Testacular</a> if you
90+ don't have it already:</p>
91+ <pre>npm install -g testacular</pre>
92+ </li>
93+ <li><p>You'll also need Git, which you can get from
94+ <a href="http://git-scm.com/download">the Git site</a>.</p></li>
95+ <li><p>Clone the angular-phonecat repository located at <a
96+ href="https://github.com/angular/angular-phonecat">Github</a> by running the following command:</p>
9097 <pre>git clone git://github.com/angular/angular-phonecat.git</pre>
9198 <p>This command creates the angular-phonecat directory in your current directory.</p></li>
9299 <li><p>Change your current directory to angular-phonecat.</p>
93100 <pre>cd angular-phonecat</pre>
94101 <p>The tutorial instructions assume you are running all commands from the angular-phonecat
95102directory.</p>
96- <p>You should run all <code>git</code> commands from msysGit bash.</p>
97- <p>Other commands like <code>test-server .bat</code> or <code>test.bat</code> should be
103+ <p>You should run all <code>git</code> commands from Git bash.</p>
104+ <p>Other commands like <code>test.bat</code> or <code>e2e- test.bat</code> should be
98105executed from the Windows command line.</li>
99106 <li><p>You need an http server running on your system, but if you don't already have one
100- already installed, you can install <a href="http://nodejs.org/#download">node.js</a>. Make sure that
101- <code>nodejs\bin</code> was added into your <code>PATH</code>. Use <code>node</code> to run
102- <code>scripts\web-server.js</code>, a simple bundled http server.</p></li>
103- </ol>
104- </div>
105-
106- <div class="tab-pane well" id="ss-mac" title="Snapshots on Mac/Linux">
107- <ol>
108- <li><p>You need Java to run unit tests, so verify that you have <a
109- href="http://java.com/">Java</a> installed by running the following command in a terminal
110- window:</p>
111- <pre>java -version</pre>
112- <li><p>Download the <a href="http://code.angularjs.org/angular-phonecat/">zip archive</a>
113- containing all of the files and unzip them into the [tutorial-dir] directory</p>.</li>
114- <li><p>Change your current directory to [tutorial-dir]/sandbox, as follows:</p>
115- <pre>cd [tutorial-dir]/sandbox</pre>
116- <p>The tutorial instructions assume you are running all commands from your
117- <code>sandbox</code> directory.</p></li>
118- <li><p>You need an http server running on your system and Mac and Linux machines typically
119- have Apache pre-installed. If you don't have an http server installed, you can <a
120- href="http://nodejs.org/#download">install node.js</a> and use it to run
121- <code>scripts/web-server.js</code>, a simple bundled http server.</p></li>
122- </ol>
123- </div>
124-
125- <div class="tab-pane well" id="ss-win" title="Snapshots on Windows">
126- <ol>
127- <li><p>Verify that you have <a href="http://java.com/">Java</a> installed and that the
128- <code>java</code> executable is on your <code>PATH</code> by running the following command in the
129- Windows command line:</p>
130- <pre>java -version</pre>
131- <p>You need Java to run unit tests, so download the <a
132- href="http://code.angularjs.org/angular-phonecat/">zip archive</a> that contains all of the files
133- and unzip the files into the [tutorial-dir] directory</p></li>
134- <li><p>Change your current directory to [tutorial-dir]/sandbox, as follows:</p>
135- <pre>cd [tutorial-dir]/sandbox</pre>
136- <p>The tutorial instructions assume you are running all commands from this directory.</p></li>
137- <li><p>You need an http server running on your system, but if you don't already have one
138- already installed, you can install <a href="http://nodejs.org/#download">node.js</a>. Make sure that
139- <code>nodejs\bin</code> was added into your <code>PATH</code>. Use <code>node</code> to run
140- <code>scripts\web-server.js</code>, a simple bundled http server.</p></li>
107+ already installed, you can use <code>node</code> to run <code>scripts\web-server.js</code>, a simple
108+ bundled http server.</p></li>
141109 </ol>
142110 </div>
143- </divs>
144111
145112The last thing to do is to make sure your computer has a web browser and a good text editor
146113installed. Now, let's get some cool stuff done!
0 commit comments