An open API service indexing awesome lists of open source software.

https://github.com/guleri24/helloworld

A hello world application
https://github.com/guleri24/helloworld

angular h2-database helloworld spring-boot

Last synced: about 2 months ago
JSON representation

A hello world application

Awesome Lists containing this project

README

          

# HelloWorld
A hello world application in Spring Boot and Angular

https://user-images.githubusercontent.com/43719098/172848623-fd44d9c8-06ea-4fea-8ac6-db309d1b4c84.mp4

# Requirements
Java 18

NodeJS 18

Angular 14.0.0

# Build from source

## Optional
* To try the UI
```
npm install
ng serve
```
link: http://localhost:4200/

## Integrating Angular With SpringBoot
1. Build HelloWorldFrontend
```
npm install
ng build --configuration production
```
It is going to create static files.

2. Build HelloWorldBackend
Build and run the Spring Boot server with commands:
```
./mvnw clean install
./mvnw spring-boot:run
```
First command is going to copy the static files form frontend to backend as defined in pom.xml plugin (line: 47 onwards)

Open browser with url: http://localhost:8080/