JanLoebel / angular-spring-template

@Deprecated Basic example how to combine Spring Boot, together with AngularJs and Gulp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular-Spring-Template

This is a basic example how to combine Spring Boot, together with AngularJs and Gulp. The project is inspired and based on the projects jhipster and generator-hottowel. Please feel free to give me your feedback, recommendations or ask some questions.

Installation

Prerequisites: You must have installed npm and Bower.

  1. Clone git repository: git clone ...
  2. Execute Maven build: ./mvnw clean package -Pprod
  3. Download gulp build dependencies: npm install
  4. Download UI dependencies: bower install

Maven Profiles

  • mvnw

    • Runs "spring-boot:run" as default goal to compile and start the backend-application.
  • mvnw clean package -Pprod

    • Build the "production war" therefore, it will run gulp build and package everything together.

Important Gulp Goals

  • gulp serve

    • Build the 'development'-version and start BrowserSync to reload changes live in the browser.
  • gulp build

    • Build the 'production'-version with minified and optimized styles, HTML, images, etc.

Start

After building with mvn clean package -Pprod the war-file you can easily start it via java -jar angular-spring-template-0.0.1-SNAPSHOT.war --spring.profiles.active=prod

Open Points

  • Testing: Using Karma and Protractor for testing
  • Include your feedback, recommendation, tips, and tricks.

Contribution

If you find any bug or if you have a feature-request, feedback or recommendations please don't hesitate to use the issue-tracker. Pull-requests are always welcome.

References

This project is inspired and based on:

License

Angular-Spring-Template

Copyright (C) 2016 Jan Löbel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

@Deprecated Basic example how to combine Spring Boot, together with AngularJs and Gulp.

License:Apache License 2.0


Languages

Language:JavaScript 49.9%Language:Shell 17.7%Language:Batchfile 12.6%Language:Java 11.4%Language:HTML 8.1%Language:CSS 0.2%