Skip to content

Materials and source code for an Angular 2 training workshop.

License

Notifications You must be signed in to change notification settings

Zuehlke/training-angular2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular 2 Training

This repository contains materials and source code for the workshop introducing Angular 2 together with TypeScript and ASP.NET Core.

  • In the 📁 Application folder you can find the example application from the workshop in its final state.
  • The 📁 Exercises folder contains the materials for the exercises made in this workshop.

Table of Contents

Before you Start

This section contains information about the installation prerequisites and the steps you need to do before running one of the example applications.

Installation Prerequisites

The following tools are required to get the example applications running:

To develop the applications you will need to have one of the following setups available:

  1. You can work with Visual Studio 2017
  2. Or you can use Visual Studio Code having the C# for Visual Studio Code extension installed.

Additionally you will need to install a set of tools to run and test the application globally. Open a console and run

npm install -g webpack karma jasmine protractor webdriver-manager

Running an Example Project or Exercise

This repository contains a whole bunch of Visual Studio solutions, both for the exercise and for the example application. To get one of the solutions running you need to execute these steps:

First load the solution using Visual Studio or Visual Studio Code. Then open a console at the Zuehlke.ExpenseReporting folder of the solution and run

npm install

After this ran successfully run

webpack --config webpack.config.vendor.js

to bundle the 3rd party scripts and styles for your application.

If you are using Visual Studio code you also need to run

dotnet restore

to restore the NuGet packages used by the application.

If your application still refuses to load properly you might need to repeat the npm install command.

Running Unit- or E2E-Tests

To run unit-tests open a console at the Zuehlke.ExpenseReporting folder of the solution you want to test and run

npm test

To run the e2e UI tests open a console at the Zuehlke.ExpenseReporting folder of the solution you want to test and run

protractor

If you experience trouble running the e2e-tests try running

webdriver-manager update

to ensure that you have a running version of the selenium server.

Additional Materials

In this section we list additional training materials

Books

Blogs, Websites and Articles