Skip to content

Requirements

  • Angular 2.4.7
  • Spring Boot 1.4
  • Hibernate 5
  • Angular CLI beta-31

Prerequesistes

  • NodeJS version > 6.9
  • Java version > 1.7
  • Maven version > 3.3
  • @angular/cli beta-31 cli.angular.io
  • run npm install -g @angular/cli

Packaging

NPM

In project HowToNG2-parent\HowToNG2-client run npm i npm start * ng build --prod

The build folder is now located in the generated projet: [project]-server/src/main/resources/public It allows to test the package application directly from the Spring Boot application.

Maven

In HowToNG2-parent project run mvn clean package running the java Spring Boot application: mvn spring-boot:run

Deployment

In project HowToNG2-parent run Stop Tomcat, you might need to remove the folder ROOT and its content. copy HowToNG2-server\target\HowToNG2-server-1.0.0.war [Tomcat install]\webapps\ROOT.war * Start Tomcat

JNDI

Tomcat configuration

  • Copy library postgresql-9.3-1103-jdbc41.jar in [Tomcat install]\lib
  • Change configuration file [Tomcat install]\conf\context.xml
<Resource name="jdbc/postgres" auth="Container"
          type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
          url="jdbc:postgresql://localhost:5432/soccerteam"
          username="postgres" password="VerySecret" maxActive="20" maxIdle="10" maxWait="-1"/>

Blu Age

Workflow

Set the property dbDataSource to jdbc/postgres in com.netfective.bluage.springboot.jpa

Proxy settings

Edit .npmrc in your %HOMEPATH% folder

proxy=http://proxy.netfective.com:3128
https-proxy=http://proxy.netfective.com:3128

Misc

Spring Boot configuration: application.properties