Skip to content

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

License

Notifications You must be signed in to change notification settings

nicos-dev/spring-boot_angular_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •