From ca96ec32f996b1130f06ad070ee29c5810c40e57 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 18 Oct 2012 02:33:45 -0700 Subject: docs(tutorial): replace JsTD with Testacular + drop snapshots JsTD references have been replaced with Testacular stuff. snapshots are PITA to maintain so I'm dropping them, everyone loves the Git version anyway. --- docs/content/tutorial/index.ngdoc | 97 ++++++++++++------------------------- docs/content/tutorial/step_00.ngdoc | 66 +------------------------ docs/content/tutorial/step_02.ngdoc | 31 +++++------- docs/content/tutorial/step_03.ngdoc | 5 ++ docs/content/tutorial/step_04.ngdoc | 12 ++--- docs/content/tutorial/step_05.ngdoc | 9 ++-- docs/content/tutorial/step_06.ngdoc | 4 +- docs/content/tutorial/step_07.ngdoc | 4 +- docs/content/tutorial/step_08.ngdoc | 13 ++--- docs/content/tutorial/step_09.ngdoc | 8 +-- docs/content/tutorial/step_10.ngdoc | 4 +- docs/content/tutorial/step_11.ngdoc | 8 +-- docs/content/tutorial/the_end.ngdoc | 2 +- 13 files changed, 73 insertions(+), 190 deletions(-) (limited to 'docs/content/tutorial') diff --git a/docs/content/tutorial/index.ngdoc b/docs/content/tutorial/index.ngdoc index bc5d4180..2d6cf43f 100644 --- a/docs/content/tutorial/index.ngdoc +++ b/docs/content/tutorial/index.ngdoc @@ -47,20 +47,23 @@ really digging into it. If you're looking for a shorter introduction to AngularJ # Working with the code You can follow this tutorial and hack on the code in either the Mac/Linux or the Windows -environment. Options for working with the tutorial are to use the Git versioning system for source -code management or to use scripts that copy snapshots of project files into your workspace -(`sandbox`) directory. Select one of the tabs below and follow the instructions for setting up your -computer for your preferred option. +environment. The tutorial relies on the use of Git versioning system for source code management. +You don't need to know anything about Git to follow the tutorial. Select one of the tabs below +and follow the instructions for setting up your computer.
Verify that you have Java installed by running the -following command in a terminal window:
-java -version-
You will need Java to run unit tests.
Download Git from the Git site.
-You can build Git from source or use the pre-compiled package.
You will need Node.js and Testacular to run unit tests, so please verify that you have
+ Node.js v0.8 or better installed
+ and that the node executable is on your PATH by running the following
+ command in a terminal window:
node --version+
Additionally install Testacular if you + don't have it already:
+npm install -g testacular+
You'll also need Git, which you can get from + the Git site.
Clone the angular-phonecat repository located at Github by running the following command:
git clone git://github.com/angular/angular-phonecat.git@@ -71,76 +74,40 @@ directory.
The tutorial instructions assume you are running all commands from the angular-phonecat directory.
You will need an http server running on your system. Mac and Linux machines typically
-have Apache pre-installed, but If you don't already have one installed, you can install node.js. Use node to run
-scripts/web-server.js, a simple bundled http server.
node
+to run scripts/web-server.js, a simple bundled http server.
You will need Java to run unit tests, so run the following command to verify that you
-have Java installed and that the java executable is on
-your PATH.
java -version-
Install msysGit from the Git site.
Open msysGit bash and clone the angular-phonecat repository located at Github by running the following command:
+You will need Node.js and Testacular to run unit tests, so please verify that you have
+ Node.js v0.8 or better installed
+ and that the node executable is on your PATH by running the following
+ command in a terminal window:
node --version+
Additionally install Testacular if you + don't have it already:
+npm install -g testacular+
You'll also need Git, which you can get from + the Git site.
Clone the angular-phonecat repository located at Github by running the following command:
git clone git://github.com/angular/angular-phonecat.git
This command creates the angular-phonecat directory in your current directory.
Change your current directory to angular-phonecat.
cd angular-phonecat
The tutorial instructions assume you are running all commands from the angular-phonecat directory.
-You should run all git commands from msysGit bash.
Other commands like test-server.bat or test.bat should be
+
You should run all git commands from Git bash.
Other commands like test.bat or e2e-test.bat should be
executed from the Windows command line.
You need an http server running on your system, but if you don't already have one
-already installed, you can install node.js. Make sure that
-nodejs\bin was added into your PATH. Use node to run
-scripts\web-server.js, a simple bundled http server.
You need Java to run unit tests, so verify that you have Java installed by running the following command in a terminal -window:
-java -version-
Download the zip archive -containing all of the files and unzip them into the [tutorial-dir] directory
.Change your current directory to [tutorial-dir]/sandbox, as follows:
-cd [tutorial-dir]/sandbox-
The tutorial instructions assume you are running all commands from your
-sandbox directory.
You need an http server running on your system and Mac and Linux machines typically
-have Apache pre-installed. If you don't have an http server installed, you can install node.js and use it to run
-scripts/web-server.js, a simple bundled http server.
Verify that you have Java installed and that the
-java executable is on your PATH by running the following command in the
-Windows command line:
java -version-
You need Java to run unit tests, so download the zip archive that contains all of the files -and unzip the files into the [tutorial-dir] directory
Change your current directory to [tutorial-dir]/sandbox, as follows:
-cd [tutorial-dir]/sandbox-
The tutorial instructions assume you are running all commands from this directory.
You need an http server running on your system, but if you don't already have one
-already installed, you can install node.js. Make sure that
-nodejs\bin was added into your PATH. Use node to run
-scripts\web-server.js, a simple bundled http server.
node to run scripts\web-server.js, a simple
+bundled http server.
Open msysGit bash and run this command (in angular-phonecat directory):
+Open Git bash and run this command (in angular-phonecat directory):
git checkout -f step-0
This resets your workspace to step 0 of the tutorial app.
You must repeat this for every future step in the tutorial and change the number to @@ -74,70 +74,6 @@ directory.
In the angular-phonecat directory, run this command:
-./goto_step.sh 0-
This resets your workspace to step 0 of the tutorial app.
-You must repeat this for every future step in the tutorial and change the number to - the number of the step you are on. This will cause any changes you made within - your working directory to be lost.
./scripts/web-server.js to start the web server.sandbox directory.http://localhost:[port-number]/[context-path]/app/index.html.Open windows command line and run this command (in the angular-phonecat directory):
-goto_step.bat 0-
This resets your workspace to step 0 of the tutorial app.
-You must repeat this for every future step in the tutorial and change the number to - the number of the step you are on. This will cause any changes you made within - your working directory to be lost.
node
-scripts\web-server.js to start the web server.sandbox directory.http://localhost:[port-number]/[context-path]/app/index.html.