Installation summary – a quick guide

We will be installing the Angular Seed project using Git.

Installing Git

We will use this project throughout the book as our sample project. It is good to periodically check your current git version and current release notes for a new version to determine if upgrading is appropriate. Refer to https://git-scm.com/ for the most current Git information.

If you wish to review any of the installation processes for Git, refer to the previous sections for specific installation or troubleshooting steps:

Determining Git Installation

Let's understand the use of Git for installation of Xcode on Mac systems:

  • Adding Git to Your $PATH variable:
    • For example: PATH = $PATH:/usr/local/git/bin/
  • If Git is not installed:

In this chapter and for the remainder of the book, we will be using the Angular Seed project. The main reason for this is that it is simple to use the scaffold in order to set up a quick project with an HTTP server.

Create the Angular Seed Project

Checkout the Angular Seed Project from its Github repository

  • The project is located at https://github.com/angular/angular-seed.
  • Angular Seed is an application that will generate an Angular.js project scaffold.
  • Dependencies of Angular Seed.
  • Git and Node.js are the only dependencies of Angular Seed (See Chapter 1, Grunt Dependencies, for information regarding installation of Node.js).
  • Clone the Angular Seed Project.
  • cd into your project root and clone Angular Seed.
    git clone --depth=1 https://github.com/angular/angular-seed.git
    sample_project
    
  • Installation of the Angular Seed Project dependencies.
  • Run npm install from within the sample project that was just created. This will install all of the files required by the project scaffold and Bower will manage installation of all the Angular code needed by the sample application.
  • In order to run the Angular Seed application, simply run the following command to launch an HTTP server running on port 8000:
    npm start
    
  • Open the application by navigating to http://localhost:8000/app/index.html. Stop the running server with Ctrl + C.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.202.224