Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.75 KB

File metadata and controls

43 lines (33 loc) · 1.75 KB

WebApp Tutorial

This is tutorial material for building web apps with Spring Boot, Spring Data Rest, AnguluarJS and TypeScript.

Used Technologies

  • Java 7 or 8

  • HAL (Hypertext Application Language)

  • Spring Boot (+ Data, REST, HATEOAS)

  • TypeScript for web client

  • AngularJS for web client

  • JUnit for Java unit and integration testing

  • Mockito for Mocking

  • Gradle as build system

  • NPM, Grunt, Bower, TSG for the web client build

Requirements

  • Java 7 or 8 (JDK) installed

  • Node.js installed

    • Grunt CLI installed (npm install -g grunt-cli)

    • Bower installed (npm install -g bower)

    • TSD installed (npm install -g tsd)

In the vagrant directory you find a Vagrantfile to create a (German) development environment.

  • Install Vagrant and VirtualBox

  • Invoke "vagrant up" in a terminal

  • Wait for 20 minutes letting Vagrant create the whole virtual machine

  • In the VM, log in as vagrant/vagrant and then invoke: startx

  • The latest Ubuntu with a simple desktop will start up

  • You find this project at /home/vagrant/webapp-tutorial

  • All Gradle and JavaScript dependencies are already in the VM

  • You find an IntelliJ IDEA trial under /opt

  • Before starting IntelliJ you have to configure the Java 8 JDK

  • After starting IntelliJ you have to install the Lombok plugin manually.

Getting Started

When you want to run the tutorial locally, prepare all the labs:

  • ./gradlew prepareJs (invokes npm install, bower install, tsd reinstall on all JavaScript projects)

  • ./gradlew clean build (builds all the tutorial labs (Java parts), runs all the Java tests)