angular-spring-boot-sample icon indicating copy to clipboard operation
angular-spring-boot-sample copied to clipboard

Angular Spring Demo Application

Build Status

Development-Setup

Setup

  • Install JDK 8+ and Maven 3.3+
  • Install MySQL5.5+ Server
  • Install NodeJS and npm (http://nodejs.org/download/)
  • Install Build Tools
$ sudo npm install -g bower grunt-cli karma

local setup

Install MySQL and run the following SQL:

CREATE USER 'ngspring'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'ngspring'@'localhost';
CREATE DATABASE NGSPRING;

Run maven

$ mvn clean install idea:idea eclipse:eclipse

Projects can now imported in your favourite IDE

Development

  1. start the backend:
$ vagrant up
$ cd angular-spring-boot-webapp
$ mvn spring-boot:run
  1. start the frontend:
$ cd angular-spring-boot-webapp
$ npm start

Browser now opens localhost:9000 and you can add some events ;)

Note: Any changes in the frontend will be lead to a reload in the browser

Backend is available at with user/password

API is available at

Docker

Run

$ mvn -Pdocker spring-boot:run