Skip to content

Task 8: Integration with RDS#1

Open
Tati-Moon wants to merge 3 commits intomainfrom
feature/task-8
Open

Task 8: Integration with RDS#1
Tati-Moon wants to merge 3 commits intomainfrom
feature/task-8

Conversation

@Tati-Moon
Copy link
Owner

@Tati-Moon Tati-Moon commented Jul 28, 2024

Task: https://github.com/rolling-scopes-school/aws/blob/main/aws-developer/08_integration_with_sql_database/task.md


Hi, everyone. I couldn't get it to work together, only with postman.
I'm not a frontend developer and this assignment was very difficult for me..
I'd be happy to help.

image

FE: https://d3oeh93tzbcw2m.cloudfront.net/
Shope: Tati-Moon/nodejs-aws-shop-react#7


Created a Database Instance

image

Connected to the Database Instance:
image

Created Tables:
image

Scripts:
https://github.com/Tati-Moon/nodejs-aws-cart-api/blob/134408ef0b77d21f48a1455670845a1e07be13a8/db_scripts/create_tables.txt

https://github.com/Tati-Moon/nodejs-aws-cart-api/blob/134408ef0b77d21f48a1455670845a1e07be13a8/db_scripts/inset_items.txt

  • Task3:
  • Updated the application’s source code to switch from in-memory storage to using PostgreSQL for persistent storage.
  • Integrated the application with PostgreSQL using TypeORM, an Object-Relational Mapping (ORM) library
    +Integrated the application with the RDS instance, ensuring that the database credentials and connection details were properly configured
    +Passed these credentials and other necessary configuration details as environment variables to the AWS Lambda functions, enabling secure access to the database from the application's serverless components.
    image

https://7gfwc5rdqhja7nnbl5lhsnqcki0chtgh.lambda-url.us-east-1.on.aws/api/profile/cart/
login: test1 Password: TEST_PASSWORD
image

Additional (optional) tasks:

  • Created an orders table in the PostgreSQL database to store order-related information.
    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