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.
Prerequisites: You must have installed npm and Bower.
- Clone git repository:
git clone ...
- Execute Maven build:
./mvnw clean package -Pprod
- Download gulp build dependencies:
npm install
- Download UI dependencies:
bower install
-
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.
- Build the "production war" therefore, it will run
-
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.
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
- Testing: Using Karma and Protractor for testing
- Include your feedback, recommendation, tips, and tricks.
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.
This project is inspired and based on:
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.