Adding some REACT to our Star Wars quotes generator | S02 E23 | Build On Weekly

This week, Jacquie and Darko go back to their Star Wars quotes API, and go boldly where no back-end engineer has gone before. Making some Front End with REACT 🤯

AWS Admin
Amazon Employee
Published Jul 27, 2023
Last Modified Jun 25, 2024
Jacquie and Darko getting ready for the stream
Hello friends and welcome to this week's Build On Weekly episode show notes! Today is PART 3, yes you heard that right, Part 3 of our Star Wars Quote Generator adventure. Last time we looked at this, we managed to add an API to PUT new Quotes into the Database. And this time we are doing something scary (at least for us back end folks), we are adding a REACT front end to our quotes API.😭
Check out the recording below for some fiddling around with CORS, Darko's stunning web design, and all around tomfoolery! 💜
Darko's stunning design
Darko's stunning desing
And if you want to try and improve the code of the entire thing we built. Check it out right here on github
Oh, and if you are here just to learn how to enable CORS on Lambda and API Gateway, here is what you need to do:
Ensure that your Lambda response function contains the following code:
And when creating up the API Gateway with CDK do it like so:
You're welcome 😅
Check out the recording here:
Loading...

Links from today's episode

🐦 Reach out to the hosts and guests:

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments