Julia - Integrate the Frontend with Backend for Material Graph#4344
Conversation
… test to fit with the api
… test to fit with the api
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi Julia, I’m attaching screenshots from both Thunder Client and the frontend view for reference. |
|
|
Thank you all, merging! |






Description
Related PRS (if any):
This frontend PR is related to the #1888 backend PR.
To test this frontend PR you need to checkout the #1888 backend PR.
…
Main changes explained:
GET http://localhost:4500/api/material-costs=> Return a list of project Id and totalCostK
GET http://localhost:4500/api/material-costs?projectId={projectId}GET http://localhost:4500/api/material-costs?projectId={projectId1,projectId2,projectId3}Return the cost of all the project ids in the parameter
How to test:
** This PR uses Node v 20
REACT_APP_APIENDPOINT="http://localhost:4500/api"
so the app can use the localhost api
npm installand...to run this PR locallyor http://localhost:3000/bmdashboard/totalconstructionsummary
Screenshots or videos of changes:
PR.review.mp4
Note:
Include the information the reviewers need to know.