Skip to content

A simple starter Project for a project that integrates angular 2 in a Spring Boot environment

License

Notifications You must be signed in to change notification settings

zebrajaeger/springboot-angular2ts-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Maven archetype to start with an a simple Angular 2 project that is directly integrated into a Spring Boot Server.

  • It exposes the angular application on root ('/' and '/index.html')
  • The REST api is exposed under /api/

Preconditions

  • java (JDK) is installed
  • maven ist installed
  • node.js is installed
  • git is installed (optional)

Usage

There a two modes

  • Ever step starts with the following steps
    • run 'mvn install' in the project root
    • execute the .jar under webapp/target (java -jar xxx.jar)
  • Running the Spring webapp and the Angular app separate (Develop)
    • Go to frontend and execute npm run start (is watches file changes)
    • Open Browser at http://localhost:4201
  • Together in one .jar (Production, Angular is embedded)

About

A simple starter Project for a project that integrates angular 2 in a Spring Boot environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published