AWS Amplify: Adding a RESTful backend to reactjs

  Рет қаралды 35,475

Focus Otter

Focus Otter

Күн бұрын

Пікірлер: 54
@danielavignau1571
@danielavignau1571 3 жыл бұрын
I spent the whole weekend reading and seeing various tutorials about exactly this, and you solved all my problems in less than 21 minutes. thanks, dude!
@ryanl8119
@ryanl8119 Жыл бұрын
This video is gold bro. I messed around with the cognito sdk which was a nightmare. Amplify all the way!
@MikkoDaFinlandia
@MikkoDaFinlandia 2 жыл бұрын
Nice video, I'm impressed how clear and quick you are! This was exactly what I was looking for, thanks!
@khandoor7228
@khandoor7228 4 жыл бұрын
Dude excellent video exactly what I was looking for!! much thanks!
@focusotter
@focusotter 4 жыл бұрын
KhanDoor happy to hear you found it useful. If there’s anything else you’d like a video on feel free to let me know!
@HanifaNabuuma
@HanifaNabuuma 3 жыл бұрын
Short and sweet! Thank you!
@mahdiabout
@mahdiabout 4 жыл бұрын
Short, Simple, Clear => Well done
@khanf13
@khanf13 3 жыл бұрын
why on earth dont u have more subs you explained everything really damn well! thanks
@focusotter
@focusotter 3 жыл бұрын
Thanks! That really means a lot!
@khanf13
@khanf13 3 жыл бұрын
@@focusotter just a quick question, lets say you logged out and signed in with a new email/password(basically a new user), then the new user wouldn't be able to see the names of the dogs, right? and if you logged out and logged back in as the user that added the dog names then the names would still be there?
@focusotter
@focusotter 3 жыл бұрын
@@khanf13 Hey! Great question. So in this example, the only authorization is that to use the API, you have to be signed in. So all signed-in users will have access to get and update the same set of data. You can extend this example to manually set up those fine-grained permissions, but it can be a bit cumbersome, especially since the graphql API make is much easier to do. If you're interested in exploring that route, I recently answered how to do this in a QnA session: kzbin.info/www/bejne/i3XGmaKwl7hpl6M
@danubiomuller
@danubiomuller 4 жыл бұрын
Thank you. You're doing great work for society.
@jaggyjut
@jaggyjut 3 жыл бұрын
wow, this is soo cool. Please make more these videos.
@ledgermanager
@ledgermanager 4 жыл бұрын
very very straightforward explanation, awesome.Thnx!
@asgaraliyev8740
@asgaraliyev8740 4 жыл бұрын
OMG you did tons of things in just 20 minute.And it was very simple.WORK SMART !!! By the way can I do that with MongoDb?Please make more videos
@anthonymazzie4237
@anthonymazzie4237 3 жыл бұрын
Great tutorial, exactly what I was looking for, thank you.
@akshaybodla163
@akshaybodla163 3 жыл бұрын
This is an amazing video! You saved me hours of reading documentation and debugging:)
@marlonsantos5050
@marlonsantos5050 3 жыл бұрын
Excelent video, if i want to delete and edit an item, how could i do?
@chenming6940
@chenming6940 2 жыл бұрын
Hi there, your video saved me! Congrats on your new role! I like this kind of short (below 1h) videos building full-stack web app, really useful for beginners who don't even know what to search! I am looking for a video to teach me how to load a welcome page and only show the sign up/ sign in page after you click a button. I am using a tutorial from aws that has Cognito authenticator and s3 storage but loads the auth page at the beginning.
@Nickben89
@Nickben89 Жыл бұрын
a little late and I don't expect you to know or reply, but, what's the font you use in your terminal? looks mint!
@elad3958
@elad3958 4 жыл бұрын
Great video brother! Learned a lot
@georgeruellan
@georgeruellan 2 жыл бұрын
Legend, thank you!
@kirksurber7262
@kirksurber7262 Жыл бұрын
This is great! How long did it take you to know all of these codes with aws? (E.g. amplify shortcuts)
@Watchtheyt
@Watchtheyt 3 жыл бұрын
I have just started exploring AWS. Your video was a great introduction. Thank u very much. I am trying to add another table to the existing dynamodb. If you have any resource regarding the same, Please share or make a video.. Thanks a lot..
@khattami240193
@khattami240193 4 жыл бұрын
Very, very useful.
@phantazzor
@phantazzor 3 жыл бұрын
what's the best practice ...setPets([...pets, ..resPets]) or just setPets(resPets) and adding pets to the useEffect array?
@swyxTV
@swyxTV 4 жыл бұрын
great work! video tip: zoom in a little more than you're comfortable when doing these. remember half your viewers will be watching on their phones.
@focusotter
@focusotter 4 жыл бұрын
Thanks, will do! I'm definitely open to more feedback as well :)
@sullybs
@sullybs 3 жыл бұрын
Hey could you tell me what VSC theme you're using? Great video btw :)
@focusotter
@focusotter 3 жыл бұрын
Thanks for watching! It’s called Scarlet Protocol Beta
@sullybs
@sullybs 3 жыл бұрын
@@focusotter Thanks!
@jaggyjut
@jaggyjut 3 жыл бұрын
Can we use AWS Amplify in a microservices architecture app?
@sreedeviparupalli4198
@sreedeviparupalli4198 3 жыл бұрын
Hi i tried your example. i am getting src\App.js Line 15:2: 'useEffect' is not defined no-undef
@matiasfacio1988
@matiasfacio1988 3 жыл бұрын
excellent!
@swaniketchowdhury
@swaniketchowdhury 3 жыл бұрын
Can I use AWS Amplify without an AWS account?
@AmberCheaaa
@AmberCheaaa 3 жыл бұрын
I've done the same set up as you but for some reason I keep getting an issue with CORS on the API.Post request. Any ideas?
@AugustineCatherine
@AugustineCatherine 3 жыл бұрын
same here
@AmberCheaaa
@AmberCheaaa 3 жыл бұрын
@@AugustineCatherine Looks like this is what you need docs.amplify.aws/lib/restapi/authz/q/platform/js#unauthenticated-requests per this issue github.com/aws-amplify/amplify-js/issues/7749 Though I'm still having an issue getting it to work with authentication in the endpoints and Cognito, might remove authentication on your endpoints until the workflow is fixed.
@AugustineCatherine
@AugustineCatherine 3 жыл бұрын
@@AmberCheaaa the thing is, when I run it for the first time, it works and then on it throws the CORS issue. Will try ur suggestion
@AugustineCatherine
@AugustineCatherine 3 жыл бұрын
@Dougie Major yes, the path was correct,that's why it worked the first time. Nothing changed, but doesn't run the next.
@AugustineCatherine
@AugustineCatherine 3 жыл бұрын
@Dougie Major Access to XMLHttpRequest at '**/staging/getChapterCount' from origin 'localhost:4203' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource... I have this header though..
@danielhall5679
@danielhall5679 4 жыл бұрын
Can you make a video with python backend for this?
@jdchannelviewer
@jdchannelviewer 2 жыл бұрын
FYI the AmplifySignOut functionality is deprecated and won't work as stated in this tutorial.
@focusotter
@focusotter 2 жыл бұрын
Good callout! I’ll have a new video out with an update next week!
@tonyg2554
@tonyg2554 2 жыл бұрын
I really wish I had a magic wand to stop people saying "go ahead and ..." every other sentence.
@focusotter
@focusotter 2 жыл бұрын
If you ever get it, go ahead and use it on me!
@thedathoudarya
@thedathoudarya 4 жыл бұрын
Great video, nicely explained! But, I have a question. I don't see you add Authorization header in the API request and yet, you managed to do the CRUD operations successfully. How is that possible? I'm referring to below article. Appreciate if you could give me some points on this because, I have no luck getting my API calls success. Thanks! docs.amplify.aws/lib/restapi/authz/q/platform/js#cognito-user-pools-authorization
@focusotter
@focusotter 4 жыл бұрын
Hey! When our frontend calls our endpoint with the API.get() method, it also uses the credentials found in our aws-exports file to auththenticate with our API Gateway backend. Super good observation since this is only possible because we added our API via the Amplify CLI. If we used an API Gateway that was standalone from our app, we would have to pass in the auth headers as you mentioned. Hope that helps, and thanks for checking out the video!
@thedathoudarya
@thedathoudarya 4 жыл бұрын
@@focusotter Thank you very much for your reply. I found some points to follow, in your reply. Big help! Keep on tutoring!
@nadeemqureshi9779
@nadeemqureshi9779 3 жыл бұрын
No context about where exactly are you and what exactly are you trying to achieve. Dislike given.
@focusotter
@focusotter 3 жыл бұрын
Thanks for checking out the video!✌🏽
Fullstack Development with AWS AppSync and Amplify
44:14
Focus Otter
Рет қаралды 15 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Why I avoid useEffect For API Calls and use React Query instead
17:45
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 917 М.
Serverless Functions in Depth with AWS Amplify
1:08:33
Nader Dabit
Рет қаралды 46 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Loading Your React Data Like This is Awesome
13:27
Josh tried coding
Рет қаралды 115 М.
Working with Data in DynamoDB from React with AWS Amplify - Full tutorial
43:10
Complete Coding - Master AWS Serverless
Рет қаралды 65 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН