From 6ff26856682a6b6b6d07b09fb05a5ea30d5ad1cc 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 +++++++++++++-------------------------- 1 file changed, 32 insertions(+), 65 deletions(-) (limited to 'docs/content/tutorial/index.ngdoc') 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.
    -
  1. 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.

  2. -
  3. Download Git from the Git site.

    -

    You can build Git from source or use the pre-compiled package.

  4. +
  5. 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
    +
  6. You'll also need Git, which you can get from + the Git site.

  7. 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.

  8. The tutorial instructions assume you are running all commands from the angular-phonecat directory.

  9. 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.

  10. +have Apache pre-installed, but If you don't already have one installed, you can use node +to run scripts/web-server.js, a simple bundled http server.

    -
  1. 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
    -

  2. -
  3. Install msysGit from the Git site.

  4. -
  5. Open msysGit bash and clone the angular-phonecat repository located at Github by running the following command:

    +
  6. 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
    +
  7. +
  8. You'll also need Git, which you can get from + the Git site.

  9. +
  10. 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.

  11. 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.

  12. 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.

  13. -
-
- -
-
    -
  1. 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
    -
  2. Download the zip archive -containing all of the files and unzip them into the [tutorial-dir] directory

    .
  3. -
  4. 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.

  5. -
  6. 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.

  7. -
-
- -
-
    -
  1. 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

  2. -
  3. 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.

  4. -
  5. 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.

  6. +already installed, you can use node to run scripts\web-server.js, a simple +bundled http server.

- The last thing to do is to make sure your computer has a web browser and a good text editor installed. Now, let's get some cool stuff done! -- cgit v1.2.3