This is a small application blueprint with Angular frontend and Spring backend. The blueprint can be used to create web-based complex applications. It is not intended for websites with dynamic functionality.
Prerequisites: Maven > 3.3 and Node > 6.9 (NPM > 3) installed.
Build in root directory of project with:
mvn install
Install NPM dependenies in blueprint-frontend with:
npm install
Import in your favorite IDE and launch BlueprintApplication or go to
blueprint-backend and launch mvn spring-boot:run
. This launches the backend
server at http://localhost:8080.
In blueprint-frontend launch npm start
. This launches the frontend (in watch mode) at
http://localhost:4200. The backend calls will be proxied
back to the backend server. Any changes on the frontend will directly compile and
reload the app.
Build the whole project with Maven and NPM (uses frontend-maven-plugin):
mvn install -P nodejs
After building you can launch the application via:
java -jar blueprint-webapp-VERSION.jar
The blueprint-backend module is a Spring MVC application providing a REST-ful API. This implementation uses Spring Data Key-Value as in-memory storage.
blueprint-frontend is an Angular app. The app is built with Angular-CLI.
The blueprint-webapp combines the frontend and backend in a startable Spring Boot application. This module contains only configuration and the main class.
- I18N - ng2-translate vs Angulat I18N
- Authentication with OAuth