Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task-9 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

task-9 #7

wants to merge 3 commits into from

Conversation

ivanp-epam
Copy link
Owner

@ivanp-epam ivanp-epam commented Jun 25, 2021

Note: AWS Account has been suspended to prevent money consumption.

Services URLS:

Usage and test examples:

Raw requests:

GET http://ivanp-epam-bff-api-dev.eu-west-1.elasticbeanstalk.com/products
GET http://ivanp-epam-bff-api-dev.eu-west-1.elasticbeanstalk.com/profile/cart

POST 'http://ivanp-epam-bff-api-dev.eu-west-1.elasticbeanstalk.com/products' 
  HEADERS 
        content-type: application/json;charset=UTF-8
  DATA 
       {"price":123,"description":"asd","title":"qwe","count":"123"}

Using FE:

  1. Open https://dvcrugb1m68oa.cloudfront.net/
  2. Check products
  3. Add products (Profile icon -> Manage products -> Create products)
  4. Add products to the cart
  5. Check Cart by clicking on cark icon

TASK Description

Evaluation criteria (each mark includes previous mark criteria)

Provide your reviewers with the following information:

  • link to the repo
  • product-service service API endpoint URL
  • example of the create product API call with all needed information: URL, payload, headers, etc.
  • CART service API endpoint URL
  • bff-service service URL
  • example how to call product-service and CART services via bff-service service URL

  • 3 - A working and correct express nest 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

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