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
- Host: GitHub
- URL: https://github.com/guleri24/helloworld
- Owner: Guleri24
- Created: 2022-06-09T13:11:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T13:25:51.000Z (almost 4 years ago)
- Last Synced: 2025-04-28T05:36:35.597Z (12 months ago)
- Topics: angular, h2-database, helloworld, spring-boot
- Language: TypeScript
- Homepage:
- Size: 355 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/