Skip to content

inshatan/nodejs-aws-be

Repository files navigation

Task 9 (Backend For Frontend)

product-service

cart-service

bff-service

Create product

To create product you can use Frontend Application (https://d2v14ttltat414.cloudfront.net).

Please use a csv file in the form (example can be found in the file ./products.csv):

title,description,price,count

Main tasks

  • 3 - A working and correct express application should be in the bff-service folder. Reviewer can start this application locally with any valid configuration in the .env file and this application should works as described in the task 9.1
  • 5 - The bff-service should be deployed with Elastic Beanstalk. The bff-service call should be redirected to the appropriate service : product-service or CART. The response from the bff-service should be the same as if product-service or CART services were called directly.

Additional (optional) tasks

  • +1 - Add a cache at the bff-service level for a request to the getProductsList function of the product-service. The cache should expire in 2 minutes.
    How to test:
    • Get products list
    • Create new product
    • Get products list - result shouldn’t have new product
    • Wait more than 2 minutes
    • Get products list - result should have new product
  • +1 - Use NestJS to create bff-service instead of express

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published