Skip to content

About

The demo shows how to achieve SSL/TLS encrypted communication & handle standard http-requests (interacting with H2-Database).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

Repository files navigation

Quality Gate Status Bugs Security Rating Vulnerabilities
Java CI Node CI

Spring-Boot & Angular Demo

The demo shows how to achieve SSL/TLS encrypted communication & handle standard http-requests (interacting with H2-Database).

picture

Requires

  • Spring-Boot
    • Jdk 8
    • Maven
  • Angular
    • NPM
    • Angular CLI

Start

Spring-Boot

Navigate to ./Github/demo-service/

Update keystore

keytool -genkeypair -alias <name> -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore <name>.p12 -validity 3650
keytool -genkeypair -alias <name> -keyalg RSA -keysize 2048 -keystore <name>.jks -validity 3650
keytool -importkeystore -srckeystore <name>.jks -destkeystore <name>.p12 -deststoretype pkcs12

Move .p12 & .jks to ../keystore/

Edit application.yml

server.ssl.*
trust.*

Build jar

cd /Path/to/demo-service/ && ./mvnw clean package

Run /demo-service/target/demo*.jar

OR

Run via IDE

Angular

Navigate to ./Github/demo-ui/

Edit ./src/environments/environment.ts

serviceHost: 'https://[host-of-service]:8443/api/v1'

Run

Note: Run in ./GitHub/demo-ui

npm install
ng serve

Finish

Angular runs on port 4200

Spring-Boot runs on port 8443

Also H2-Console is reachable at https://[host-of-service]:8443/h2-console

About

The demo shows how to achieve SSL/TLS encrypted communication & handle standard http-requests (interacting with H2-Database).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages