/ng-spring-workshop-starter

spring mvc demo app for integrating my angular 2 with spring workshop

Primary LanguageGroovy

Angular 2 with Spring MVC - Workshop Starter

angular 2 with spring mvc starter app

  1. Install Recent Node - v6.5.0 or Higher

    OS X: https://nodejs.org/dist/v6.5.0/node-v6.5.0.pkg Windows: https://nodejs.org/dist/v6.5.0/win-x64/node.exe Linux: https://nodejs.org/dist/v6.5.0/node-v6.5.0-linux-x64.tar.xz Other: https://nodejs.org/en/

  2. Install Angular CLI, Gulp, and TypeScript

    npm install -g angular-cli gulp typescript

If you need uninstall an older angular-cli version:

	npm uninstall -g angular-cli 
	npm cache clear
  1. Install Java 8

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Make sure the Java 8 JDK is your default java version on the system.

java -version
java version "1.8.0_101"

Check your JAVA_HOME environment variable. Make sure it is set to the Java 8 JDK.

  1. Clone Workshop Repo

    git clone git@github.com:bellingson/ng-workshop-starter.git

  2. Install npm dependencies

    cd ng-workshop-starter/product-mgr npm install

    cd ng-workshop-starter/stuffmart npm install

  3. Test Angular CLI Installation

    ng -v

    should print angular-cli: 1.0.0-beta.20-4 (or higher)

    cd ng-workshop-starter/product-mgr ng serve

    got to http://localhost:4200/ in browser should say "app works!"

  4. Test Spring MVC App

On mac and linux:

cd ng-workshop-starter
./gradlew appRun

On windows:

cd ng-workshop-starter
./gradlew.bat appRun

go to http://localhost:8080/ in browser
should load "Stuff Mart" website

If you have difficulty running the Spring MVC app, verify that your java version and JAVA_HOME are correct. JDK 8 is required.

Browser

Chrome Browser is prefered

IDE Recommendations

IntelliJ Ultimate and Visual Studio Code seem to have the best Angular 2 support at this time. Both offer code completion and automatic imports. The workshop instructor will use IntelliJ Ultimate, but you are free to use another IDE that you are comfortable with.

Also recommend installing an Emmet plugin for any IDE you use.

http://emmet.io/