Skip to content

Task8#46

Open
viktoryia-liaukovich wants to merge 2 commits intorolling-scopes-school:mainfrom
viktoryia-liaukovich:task8
Open

Task8#46
viktoryia-liaukovich wants to merge 2 commits intorolling-scopes-school:mainfrom
viktoryia-liaukovich:task8

Conversation

@viktoryia-liaukovich
Copy link
Copy Markdown

@viktoryia-liaukovich viktoryia-liaukovich commented Nov 5, 2025

Implemented Task 8

Frontend URL: https://d1cv95qzmffnvw.cloudfront.net/

Instructions for testing (or use the token below):

  • Authorize into frontend app (log in UI is not requested in this course, so please follow the guide in the course's Readme):
    • Register by sending POST request to https://z9n1nyk0e1.execute-api.us-east-1.amazonaws.com/prod/api/auth/register with body:
    {
      "name": "your_github_login",
      "password": "TEST_PASSWORD"
    }
    
    • Log in by sending POST request to https://z9n1nyk0e1.execute-api.us-east-1.amazonaws.com/prod/api/auth/login with body:
    {
      "username": "your_github_login",
      "password": "TEST_PASSWORD"
    }
    
  • Copy the token received after login and add it to Local Storage under authorization_token key:
image
  • Done! You can now add or remove some products to the cart

You can use this token if you want: dmlrdG9yeWlhLWxpYXVrb3ZpY2g6VEVTVF9QQVNTV09SRA==

Frontend PR: viktoryia-liaukovich/shop-react-redux-cloudfront#6
Product Service PR: viktoryia-liaukovich/BE_aws_practitioner#6

Student's grade 100%
Criteria (100 points max) Points Implemented
NestJS Application and CDK Deployment
Cart Service template was forked, cloned, and the NestJS application was run successfully 10  ✅
A new CDK project was created and a Lambda function using NodejsFunction was defined to run the NestJS app with API Gateway integration; deployed using CDK deploy 15  ✅
RDS Database Instance Setup
A PostgreSQL RDS instance was created using CDK with default configurations, and proper VPC/security groups were configured for connectivity 25  ✅
Database Operations and Frontend Integration
Cart and Cart Item models were implemented using an ORM (e.g., TypeORM) with environment variables for DB connection securely passed to the Lambda function 20  ✅
Frontend was updated to integrate with Cart APIs for cart interactions (create cart, add product, delete cart item, get cart total) 10  ✅
Enhancements
ConfigService from @nestjs/config was used to manage environment variables for DB credentials 10  ✅
created_at and updated_at fields were implemented and auto computed in cart API responses 10  ✅
Total 100 100
image image

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