Angular2 Starter

Instant Setup for an Angular 2 Application

View project on GitHub

Angular2 Starter Script


Table of Contents

Before starting:

  1. Make sure you have Node.js version 4.0.0 or higher installed.

    • Check your Node version in your terminal/console:
    node -v
    
  2. Make sure you have npm version 3.0.0 or higher installed:

    • Check your npm version in your terminal/console:
    npm -v
    

    You can download Node and npm, and it's also helpful to have nvm for node version management.

    More specific details are available at the Angular 2 official docs or its corresponding GitHub README documentation.


Create Angular 2 Starter Application (Three Steps)

  1. Clone the repository:

    git clone https://github.com/dankreiger/angular2-starter-shell-script.git
  2. Change into the project directory:

    cd angular2_starter_shell_script
  3. Run the script:

    ./src/auto_setup.sh
  4. Give your starter app a name: Alt text

  5. Your default browser should open momentarily displaying your new Angular 2 starter app.


Expectations

  • The last command npm start will run two parallel node processes (as stated in the Angular 2 docs):

    1. The TypeScript compiler in watch mode
    2. A static server called lite-server that loads index.html in a browser and refreshes the browser when application files change
  • Your default browser should open and display your new Angular 2 starter application.