Skip to content

Angular 4 and Spring Boot boilerplate Hello World application

Notifications You must be signed in to change notification settings

ddubson/angular4-springboot-boilerplate

Repository files navigation

Build Status dependencies Status devDependencies Status License: MIT

Angular 4 / Spring Boot boilerplate application

This project seeks to set up a jumping off point for an Angular 4 and Spring Boot project.

Additional tools that are involved are:

  • Fluentlenium (Acceptance testing)
  • Jasmine test framework
  • Karma test runner
  • Gradle NodeJS plugin (for executing Yarn tasks via Gradle)

Running the Application

./gradlew yarnInstallGlobals yarnBuild bootRun

Executing the tests

./gradlew yarnTest test

yarnInstallGlobals needs to be run only once

Spring Boot

Source File directory:

src/main/java/com/ddubson/

Test File directory

src/test/java/com/ddubson/

Angular 4

Source
  • Source file directory:webapp/src/
  • Root src file: webapp/src/main.ts
  • Root angular app module: webapp/src/app.module.ts
Test
  • Test file directory: webapp/test/
  • Root test file: webapp/test/test_index.js
Configuration
  • NPM configuration: package.json
  • Webpack configuration: webpack.config.js
  • Typescript configuration: webapp/tsconfig.json
  • Karma configuration: webapp/test/karma.conf.js