Skip to content

An example of Spring Boot and Angular 6 integration with the help of Maven and Kotlin.

Notifications You must be signed in to change notification settings

hiper2d/spring-boot-angular-maven-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-angular-maven-starter

Kotlin TravisCI Build

An example of Spring Boot 2 and Angular 6 integration with the help of Maven, Yarn, Kotlin.

Also includes Spring Security Authentication configured for a single page application client. The backend has no control over the frontend and only responds with 200/40x HTTP statuses. All login/logout redirects are performed on the client's side. Username and password are any Latin strings.

Client npm dependencies status:

dependencies Status devDependencies Status

Consists of server and client modules.

In production mode, they both are compiled and built into a single WAR archive which can be deployed to a web application server or run directly as a standalone Java application.

In development mode, you work with both modules separately. The server is built and run with the help of Maven from the 'server' directory. The client is operated via Yarn from the 'client/src/main/ng' directory.

Build

Production mode
# build both server and client
mvn clean install -Pprod
Development mode
# build the server module without the client jar dependency 
# (can be run from the root or from the 'server' directories)
mvn clean install

# install client's npm dependencies (it's necessary for the first build only)
# navigate to the 'client/src/main/ng' directory and run the following command
yarn install

Run

Production mode
# navigate to the 'server' directory and run the following command
mvn spring-boot:run

Access UI App at http://localhost:9001

Development mode
# navigate to the 'server' directory and run the following command
mvn spring-boot:run

# navigate to the 'client/src/main/ng' directory and run the following command
yarn start

Access UI App at http://localhost:9002

About

An example of Spring Boot and Angular 6 integration with the help of Maven and Kotlin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published