KavanaN12 opened a new pull request, #701:
URL: https://github.com/apache/incubator-hugegraph-toolchain/pull/701
<!--
Thank you very much for contributing to Apache HugeGraph, we are happy
that you want to help us improve it!
Here are some tips for you:
1. If this is your first time, please read the contributing guidelines:
https://github.com/apache/hugegraph/blob/master/CONTRIBUTING.md
2. If a PR fixes/closes an issue, type the message "close xxx" (xxx is
the link of related issue) in the content.
3. Name the PR title in "Google Commit Format", start with "feat | fix |
perf | refactor | doc | chore".
4. One PR should address one issue.
5. Put an `x` in the `[ ]` to mark the item as CHECKED.
-->
## Purpose of the PR
- close #694
This PR validates and fixes the runtime integration between the new
HugeGraph Hubble 2.0 frontend and backend modules.
It solves the issue where the backend could not run as an executable JAR and
the frontend could not communicate with the backend API during development.
After this change, both modules run successfully and communicate end-to-end.
---
## Main Changes
### Backend (`hubble-be`)
- Added `spring-boot-maven-plugin` to package the backend as a runnable
Spring Boot JAR.
- Verified working startup using:
```bash
java -Dhubble.home.path=. -jar
hugegraph-hubble/hubble-be/target/hubble-be-1.7.0.jar
```
- Confirmed backend reports correct status:
```json
{"status":"UP"}
```
### Frontend (`hubble-fe`)
- Configured development proxy in `package.json`:
```json
"proxy": "http://localhost:8088"
```
- Verified frontend successfully reaches backend through `/api/*` requests.
- Confirmed:
```
GET /api/v1.2/graph-connections → 200 OK
```
---
## Verifying These Changes
- [x] Backend successfully built using Maven
- [x] Backend successfully started and reachable
- [x] Frontend installed using Yarn
- [x] Frontend started using Node 18 with OpenSSL legacy provider
- [x] Confirmed frontend and backend communicate correctly
- [x] Full end-to-end functionality tested
Screenshots included in this PR (backend health result + frontend DevTools
network success).
---
## Does This PR Potentially Affect the Following?
- [ ] Nope
- [ ] Dependencies (add/update license info)
- [x] Modify configurations
- [ ] The public API
- [ ] Other impacts (type here if needed)
---
## Documentation Status
- [ ] Doc - TODO
- [ ] Doc - Done
- [x] Doc - No Need
(The change only improves runtime behavior and does not modify user-facing
features.)
---
### Additional Notes
This update removes setup blockers for contributors working with the Hubble
2.0 codebase and ensures the development workflow operates correctly using the
updated architecture.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]