Deploying a React App on AWS S3

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 53

  • @Street.Credit
    @Street.Credit 2 ปีที่แล้ว +10

    This was a good tutorial bro. Watched others but this one had exactly what i was looking for and got our test website up in minutes. Thanks my guy.

  • @cy-borg023
    @cy-borg023 11 หลายเดือนก่อน

    Thanks for this! Extremely useful, direct and straight to the point

  • @sivanesh-s
    @sivanesh-s 6 หลายเดือนก่อน

    Thank you! This was simple and straight to the point.

  • @talunguyen9101
    @talunguyen9101 ปีที่แล้ว +2

    Super comprehensive video. Thank you so much ❤

  • @misaelpereira9679
    @misaelpereira9679 2 ปีที่แล้ว +1

    Bro! Thanks for the tutorial, i get stuck with the 403 forbidden error i did know that i have a to make an extra policy! You saved my life!

  • @ElieDeek
    @ElieDeek 2 ปีที่แล้ว +4

    Thanks a lot for your effort.
    One thing is that when i route from index to another page i get the "Message: The specified key does not exist."
    any idea how to solve that?

    • @BrokenFrames
      @BrokenFrames 9 หลายเดือนก่อน

      Did you ever figure this out?

  • @dyl9833
    @dyl9833 2 ปีที่แล้ว +1

    thanks bro, I've come back here like three times because I forget the build step lol

    • @devguyahnaf
      @devguyahnaf  2 ปีที่แล้ว

      I'm glad it helped you bro, and it's fine if you keep coming back xD

    • @dyl9833
      @dyl9833 2 ปีที่แล้ว

      @@devguyahnaf as someone just getting into software dev and AWS, these videos are mucb appreciated

  • @TejaswiniKalyani
    @TejaswiniKalyani 7 หลายเดือนก่อน

    Hello, can anyone please help with this problem? In AWS S3, when I opened the static website link, I am not able to view my web page. I checked the developer tools for errors, but there are no issues in the console as well..

  • @ayush--gupta
    @ayush--gupta ปีที่แล้ว

    Thanks for this video and also adding link for aws cli setup

  • @kshitijgupta592
    @kshitijgupta592 11 หลายเดือนก่อน

    What's the difference between hosting on AWS Amplify vs AWS S3? Isn't S3 used for storage

  • @kapilricky
    @kapilricky 6 หลายเดือนก่อน

    i can restrict visibility using VPN and whitelisting some internal IPs, right? will it still work same way?
    (i want to use for internal demos)

  • @muhammadosama5666
    @muhammadosama5666 หลายเดือนก่อน

    What if i want to use my own domain ??

  • @johnathanhorner6888
    @johnathanhorner6888 ปีที่แล้ว

    I create a react webpage a vite build. However l, when I upload the files to s3 I receive this error Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "binary/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec. If I upload the files through the cli will that work ? And fix that error ?

  • @chuckzhai6408
    @chuckzhai6408 ปีที่แล้ว

    Thank you so much. That's a great video. It make it very simple for beginniner.

  • @TranNgocTienK17HCM
    @TranNgocTienK17HCM 7 หลายเดือนก่อน

    how can i add file env in s3, thank you :3

  • @EMMA5235
    @EMMA5235 ปีที่แล้ว

    The video is quite detailed. I an just having some issue. what program were you running before?

  • @jaysahu865
    @jaysahu865 ปีที่แล้ว

    Thanks for making useful content ❤❤

  • @538sureshs7
    @538sureshs7 7 หลายเดือนก่อน

    Can you tell about your backend?

  • @jayantjha7697
    @jayantjha7697 2 ปีที่แล้ว

    For some reason, npm start executes successfully and create react app starts but serving the build folder simply opens a blank page. Also, i tried uploading both the build and the actual files but both show a blank page. Any help??

    • @MyBinaryLife
      @MyBinaryLife 2 ปีที่แล้ว

      I don’t think npm start will create the build folder, that just opens the app in localhost right? ‘npm run build’ is the command to get the build folder generated.

  • @rhrabin1298
    @rhrabin1298 ปีที่แล้ว +1

    Thanks DevGuyAhnaf

  • @davidobodo3605
    @davidobodo3605 ปีที่แล้ว

    awesome video. thanks a lot

  • @gfplatinum
    @gfplatinum ปีที่แล้ว

    you rock, thanks!

  • @emmanuelojima-ojo4873
    @emmanuelojima-ojo4873 ปีที่แล้ว

    thanks for this

  • @ol1175
    @ol1175 ปีที่แล้ว

    Thanks a lot, where to store my .env files from react?

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      React .env files arent really sensitive as you are not supposed to store secrets in there. When React gets compiled, the .env files also get embedded into the build, so there's no need to put them there.

  • @g_pazzini
    @g_pazzini ปีที่แล้ว

    which one is better to host web app? cloudfront or s3?

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      Cloudfront is a CDN, and S3 is an object storage service. You can't really "host" a website on cloudfront. Rather, you have the option to host it on S3 and then integrate cloudfront with it. But you can go without cloudfront and just do S3 like I did.

  • @natural_stupidity_
    @natural_stupidity_ 9 หลายเดือนก่อน

    I can see my website in the url but when i go to a different page e.g. anotherpage, and it gets appended at the end of the s3 url like "s3url/anotherpage" and there i hit refresh, it gives a Key not found error, how to fix this?

  • @francisera1
    @francisera1 10 หลายเดือนก่อน

    this can be use for a web app? i want to start something that is interactive, with user , login, crud operations... does this work or what do you recomend? Nice viceo btw, thanks

    • @devguyahnaf
      @devguyahnaf  10 หลายเดือนก่อน +1

      Absolutely. Just have your backend API hosted somewhere else and use S3 to host the frontend. Then make API requests and have your app provide the functionality :D

    • @francisera1
      @francisera1 10 หลายเดือนก่อน

      yhea, I thought of that... but i cant get my front end on in s3, i dont know how to serve env variables to aws.. becouse i use some for cognito userpool@@devguyahnaf

  • @jonathanyee4633
    @jonathanyee4633 2 ปีที่แล้ว

    Solid video! Can you do a follow up with connecting this S3 bucket to Route53?

    • @devguyahnaf
      @devguyahnaf  2 ปีที่แล้ว

      Yeah sure, soon

    • @jonathanyee4633
      @jonathanyee4633 2 ปีที่แล้ว

      Putting the team on your back out here

  • @pascalverdun2879
    @pascalverdun2879 2 ปีที่แล้ว

    Thanks for this video, it's very helpful! Can you tell me what linux distro you use? It looks intriguing

    • @devguyahnaf
      @devguyahnaf  2 ปีที่แล้ว

      I use Arch Linux. You can modify Arch to your taste with a variety of customised Window Managers, Compositors, Terminals, etc. :)

  • @haritha9433
    @haritha9433 11 หลายเดือนก่อน

    Thanks bro

  • @thanooshan10
    @thanooshan10 2 ปีที่แล้ว

    Thanks for the awesome video. I've a doubt. Can we deploy multi-page react website with this method?

    • @devguyahnaf
      @devguyahnaf  2 ปีที่แล้ว +1

      Yes. But that would require some configuration since S3 isn't aware of React Router. Take a look at this post I found: stackoverflow.com/questions/66326106/react-router-locations-on-aws-s3-bucket-do-not-work

    • @thanooshan10
      @thanooshan10 2 ปีที่แล้ว

      @@devguyahnaf Thanks mate! & Best of luck!

  • @vaibhav388
    @vaibhav388 ปีที่แล้ว

    Thanks bro :)

  • @Y-100k
    @Y-100k ปีที่แล้ว

    best practic

  • @TheSakibIT11
    @TheSakibIT11 3 ปีที่แล้ว

    Boss big fan

  • @neerajmahapatra5239
    @neerajmahapatra5239 ปีที่แล้ว

    Great

  • @gabriellacerda3349
    @gabriellacerda3349 2 ปีที่แล้ว

    i love you

  • @nurzahanmukta220
    @nurzahanmukta220 3 ปีที่แล้ว

    Pawg