Skip to content

Task 10: route frontend through BFF service - #8

Draft
nextsukhorutchenko wants to merge 9 commits into
mainfrom
task-10
Draft

Task 10: route frontend through BFF service#8
nextsukhorutchenko wants to merge 9 commits into
mainfrom
task-10

Conversation

@nextsukhorutchenko

@nextsukhorutchenko nextsukhorutchenko commented Jun 18, 2026

Copy link
Copy Markdown
Owner

What was done?

Updated frontend to call Product and Cart Service through BFF Service.

Frontend scope

  • API_PATHS.bff now points to Elastic Beanstalk BFF URL.
  • API_PATHS.product now points to BFF recipient route /product.
  • API_PATHS.cart now points to BFF recipient route /cart.
  • Existing frontend Product calls now go through BFF and then Product Service.
  • Existing frontend Cart and checkout calls now go through BFF and then Cart Service.

Links for review

Verification after frontend deploy

Product list should request:

http://nextsukhorutchenko-bff-api-prod.eu-west-1.elasticbeanstalk.com/product/products

Cart requests should request:

http://nextsukhorutchenko-bff-api-prod.eu-west-1.elasticbeanstalk.com/cart/api/profile/cart

Checkout/order requests should request:

http://nextsukhorutchenko-bff-api-prod.eu-west-1.elasticbeanstalk.com/cart/api/profile/cart/order

Validation

Passed locally:

  • npm run build

Vite emitted existing dependency warnings and bundle-size warning, but build completed successfully.

Notes

BFF is deployed and product-through-BFF works. Cart-through-BFF depends on the Cart Service EB environment from Task 9 being created with real RDS env vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant