Deploying MERN Stack App to Heroku - MERN Stack Tutorial with Redux #15

Поділитися
Вставка
  • Опубліковано 20 лип 2024
  • #MernStack #mern #MernTutorial #MernStackProject
    MERN Stack Tutorial Series with Redux where we will learn to build an Awesome Full Stack Notes Taking Web App Project.
    In this video we will Deploy and Host our MERN app to Heroku.
    If you wanna support me - www.buymeacoffee.com/roadside...
    Source Code - github.com/piyush-eon/notezipper
    Live Site - notezipper.herokuapp.com/
    Full Playlist -
    • MERN Stack Project Tut...
    User Authentication Video - • Complete User Authenti...
    Movie App in React JS and Material UI -
    • Movies and TV Series S...
    Quiz App in React JS and Material UI -
    • Quiz App in React JS w...
    Dictionary App in React JS and Material UI -
    • 12 Language Dictionary...
    00:00 Intro
    00:22 Deployment Preparations
    06:00 Heroku Setup
    07:55 Proc File
    08:48 Post Build Script
    10:04 Pushing to heroku Repo
    11:58 Setting Environment Variables
    12:45 Deploy without post build script
    13:10 Congrats!
    13:21 Support the channel !

КОМЕНТАРІ • 107

  • @ivojercic5833
    @ivojercic5833 2 роки тому +2

    Man I never write comments on UA-cam videos but this video definitely deserves it. You helped me a lot and I want to thank you for that. Good luck and just keep going. Greetings from Croatia

  • @sandeept9527
    @sandeept9527 2 роки тому

    Bro, you are God of MERN stack tutorials. What a fantastic tutorial series. Wow. You are doing great job by making such tutorials and helping many beginners and learners. Thanks a lot.

  • @crisleymoura7649
    @crisleymoura7649 2 роки тому

    I just jumped into this video because I was looking for some video about deploying to Heroku. Thank you very much, it took me sometime to understand but I could fit it in my project and make it work. Thanks's again.

  • @szymonduranowski4510
    @szymonduranowski4510 Рік тому

    Very helpful and informative video. Thank you so much!

  • @aneeshkalra3360
    @aneeshkalra3360 3 роки тому

    First of all thank you for sharing some wonderful Content here on YT. To be honest, it's not what you built(since many people can do it) but how you built it. I would say that it is a very clean code and hence I have took out time to actually appreciate your work. The use of proper middlewares, components ,screens, models and connection files all being modularized was exceptional. Though this is the first playlist I have gone through of yours, I have become a great fan of your because of the clean code approach you take and would highly recommend you to continue to do so. Now there were certain areas, which kind of put be back was , that I could not find the section or whether I missed out on part where we needed to delete the package.json file from the frontend to actually be able to deploy our app properly. Also certain things that I personally would have really liked was you using the cookies approach rather than the local storage and also, the use of json refresh token along with the use of the expiry token. But these are suggestions that I would really want some information on, other than that the course was 10/10 and I would say Kudos and recommend others as well to your course being a part of many communities.

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому +1

      Wow.. This is certainly the best comment I've ever recieved on this channel ❤️❤️ Thank you so much brother. I'm glad that I'm able to use this platform to provide valuable information to individuals like you.. Glad to have you as my subscriber🙏

    • @aneeshkalra3360
      @aneeshkalra3360 3 роки тому

      @@RoadsideCoder you have earned it brother

  • @vigneshr5338
    @vigneshr5338 Рік тому +3

    Hi, Based on this video I deployed my app to heroku. But now heroku site is not working. Can you please post a new video on how to deploy the MERN app?

  • @MARM218
    @MARM218 2 роки тому

    Thanks a lot buddy; I learned a lot in this tutorial series.

  • @jayantverma4639
    @jayantverma4639 Рік тому +1

    This tutorial was very great and I have consumed a lot of knowledge thank to you for making this,
    ans I would love to see a video of your journey how you become pro mern stack dev

  • @septianwijaya4584
    @septianwijaya4584 2 роки тому

    Very easy to understand, Thanks Bro! Your tutorial's very useful

  • @martabrewczynska-pastucha908

    Great playlist! :)

  • @dhruvdeora9781
    @dhruvdeora9781 2 роки тому

    Brilliant Tutorial . Thank You Very much

  • @atdc1779
    @atdc1779 2 роки тому

    I hope you make more playlists like this.
    I have learned a lot from U.
    i especially like your reactjs project.
    I am a big fan of U, thank you very much.
    🥰🥰🥰🥰🥰😘😘😘😘

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому +1

      Yes for sure brother, please share with others who need it!

    • @atdc1779
      @atdc1779 2 роки тому

      @@RoadsideCoder yep I did

  • @manjindersingh4199
    @manjindersingh4199 3 роки тому

    Thanks Bro, I am very thankful to you. I learn lot's of stuff from this tutorial.

  • @codeFitAdventurer
    @codeFitAdventurer Рік тому

    Thank you so much.

  • @titi2424
    @titi2424 2 роки тому

    top, thank you!

  • @pankajjoshi8292
    @pankajjoshi8292 2 роки тому

    Thanku for teaching us , Pls do one more video on how to create admin panel to upload files which user can download

  • @tarunrathore4513
    @tarunrathore4513 2 роки тому

    Thank You Brother ❤️❤️❤️

  • @shortclip349
    @shortclip349 Рік тому

    hello, I have completed this tutorial list. You are a great person in explaining each video, but I have a question. how do we dockerize mern note this project? can you help me, I'm having a little trouble here.

  • @rupeshgupta369
    @rupeshgupta369 2 роки тому +1

    1 ) I have completely followed the same thing, added env variables in env config in heroku also still showing application error.
    2) Also other doubt after npm run build for every change in the project we have to use run "npm run build" then the changes will take place on local host and live???

  • @biojk83
    @biojk83 2 роки тому

    Does anyone know why axios returns instead of JSON?

  • @Bskater952
    @Bskater952 2 роки тому

    thanks!

  • @mrrandom7255
    @mrrandom7255 2 роки тому

    I had a doubt should i deploy whole web website on heruko or only backend and frontend on netlify please help

  • @ishakyondemli2532
    @ishakyondemli2532 2 роки тому

    When I publish on heroku, I can't get the data from the backend, can you help me please?

  • @ansabali441
    @ansabali441 2 роки тому

    Hi bro, after deploy on heroku, my app is wroking fine in laptop but when i open on mobie, it shows white blank page:-(.....Can you help me??

  • @UmairAhmad-re1fc
    @UmairAhmad-re1fc 2 роки тому

    Const express in videos but import express in GitHub code....!!!! This creating error to me with all imports ???? Solution?

  • @dineshsubba8150
    @dineshsubba8150 Рік тому +1

    please make new deployment video of this project sir

  • @xash6917
    @xash6917 Рік тому

    I deployed web app using render but i am getting problem my app is not fetching data but it fetches data if my localhost is on

  • @timmukhamedov4674
    @timmukhamedov4674 2 роки тому

    Still giving me application error after adding env variables. Please advise.

  • @jerichosalvador1358
    @jerichosalvador1358 Рік тому

    Hello, I'm getting a 'network error' when I try to login, does anyone know the solution to this? thank you to anyone that will answer

  • @vishwagouda7468
    @vishwagouda7468 Рік тому +1

    Is there any other platforms than heroku... because I have problem with creating an account

  • @Sonu-tg6tg
    @Sonu-tg6tg 2 роки тому +1

    Hey, hi
    This is really great series, I have watched it from video 1 till now
    can you please write description of this project on your github readme in bullet points so that we can put that on resume, you have made good readme containing all screenshots but it would be very helpful if you could write description point wise as we write on resume by making some important words bold under project section!!

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому

      Thanks so much. I will update it soon!

    • @krushnatekane4906
      @krushnatekane4906 2 роки тому

      @@RoadsideCoder hey, can you please do it today itself, please!!

    • @Sonu-tg6tg
      @Sonu-tg6tg 2 роки тому

      @@RoadsideCoder please let us know when you are done with it

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому +2

      Hey sorry guys, I've been a bit busy lately. You cam have a look at the first video of this series. I have told all the features, u cam arrange them in bullets

    • @Sonu-tg6tg
      @Sonu-tg6tg 2 роки тому

      @@RoadsideCoder okay

  • @UmairAhmad-re1fc
    @UmairAhmad-re1fc Рік тому

    Can we deploy/ hosting this app on firebase??? if yes please help me

  • @eelguneezmemmedov1671
    @eelguneezmemmedov1671 2 роки тому

    Please make multilanguage website with redux or socket io

  • @Cherry-c2f
    @Cherry-c2f 2 роки тому

    When I am deploying mern project in heroku I am getting error like "Push rejected, failed to compile Node.js app heroku"

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому

      Must have missed some step, try to carefully follow the video

  • @dikshitakambri349
    @dikshitakambri349 3 роки тому

    Hi @Roadside coder!
    I deployed my application referring your tutorial, but the application is not displaying data stored in mongoDB atlas. Can you help me ?

  • @YashChovatiya-su2nl
    @YashChovatiya-su2nl 3 роки тому

    hello @Roadside coder
    my deployed website is giving me below error:
    {"message":"ENOENT: no such file or directory, stat '/app/frontend/build/index.html'","stack":null}
    can anyone help me how to fix it?

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому +1

      You might have not built frontend before pushing to heroku

    • @YashChovatiya-su2nl
      @YashChovatiya-su2nl 3 роки тому

      @@RoadsideCoder I also remove frontend/build from gitignore file

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому

      Yes now try to push again

    • @YashChovatiya-su2nl
      @YashChovatiya-su2nl 3 роки тому

      @@RoadsideCoder still give me same error!!!

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому

      Bro try to watch video again, I have explained 2 ways to do it

  • @atdc1779
    @atdc1779 2 роки тому

    Bro help me!
    When I execute the command: "git push heroku master". I got this error:" ! [remote rejected] master -> master (pre-receive hook declined) "

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому

      Try to compare your code with mine, link in description

    • @atdc1779
      @atdc1779 2 роки тому +1

      @@RoadsideCoder I captured the build-log on heroku.
      img link here: i.ibb.co/BPnfpDH/bug.png
      Please help me to fix this error.. i think it happened because of heroku-postbuild command in package.json file.
      I really need you to help me. Thanks so much🙏🙏🙏

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому +1

      Yeah so you can try the other way that I mentioned in the video

    • @atdc1779
      @atdc1779 2 роки тому

      @@RoadsideCoder I got it
      This means that when building in a build-script way, every time there is a change to the code, it will automatically deploy... and the other way will not.
      Really thanks bro😘

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому

      Welcome 🤘

  • @ShubhamSharma-yq9nc
    @ShubhamSharma-yq9nc 2 роки тому

    Hello RoadSideCoder ! Can we make changes after deployment??

  • @Yarik5555
    @Yarik5555 Рік тому

    Thank you for your wokr, heroku platforn doesn`t free. I will find someone else.

  • @tanvirahamed2059
    @tanvirahamed2059 Рік тому +1

    Please save us, heruku is no more free,give us an alternative way to deploy plz plz

  • @himanshusharma1066
    @himanshusharma1066 2 роки тому +2

    bro, it showing Not Found when I open it

  • @geeksoftechworld8882
    @geeksoftechworld8882 2 роки тому

    Hi bro. It's giving me 500 error while login. Can you please help me

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому +1

      Can u compare your code with mine. Link in description
      Plus, is it working in postman?

    • @geeksoftechworld8882
      @geeksoftechworld8882 2 роки тому

      @@RoadsideCoder it was resolved for those who are getting the same. Save jwt_secret inside same file and not in .env

  • @klpx7691
    @klpx7691 3 роки тому +1

    Bro for some reason is not working even locally.

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому

      Try to compare your code with mine. Link to repo is in description

    • @klpx7691
      @klpx7691 2 роки тому

      it does not work men your solution does not work

  • @cyleung9972
    @cyleung9972 3 роки тому

    after I deploy the app, it shows an error on the browser
    {"message":"ENOENT: no such file or directory, stat '/app/frontend/build/index.html'","stack":null}
    How can i solve it? thanks!

    • @RoadsideCoder
      @RoadsideCoder  3 роки тому

      Have you pushed the build folder in guthub? If not, remove the build from your '.gitignore' file if its there, must be because of that.. I've told this in tutorial as well

    • @everObvious
      @everObvious Рік тому

      I wound up with the same error.
      In my case, the problem stemmed way back to my GitHub repository creation, back in part #5. I prematurely created a repo within the /frontend/ directory. Moments later, you cautioned to change to the root directory, but by then it was too late. So I switched to the root and made a repo, oblivious that I now had 2 separate repositories.
      Subsequently, with the frontend in its own repository, none of the files in my /frontend/ directory were getting deployed.
      The simplest way to solve the problem was to:
      1) Create another frontend directory (I called mine "frontend2")
      2) Move all the frontend files into the new directory (Except any .git files or folders! By default, those should be hidden by your operating system. The safe bet is to drag-and-drop the files and folders into the new directory. That way you can ensure you didn't accidentally grab any hidden files.)
      3) Delete the old /frontend/. Commit the deletion (and the new /frontend2/) into your repository.
      4) Rename /frontend2/ to /frontend/.
      5) Commit that into your repository.

  • @Regalman
    @Regalman Рік тому

    no backend you forgot that!!!

  • @mmbower1
    @mmbower1 2 роки тому

    Doesn't work for me not matter what I try. Did everything correctly

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому +1

      What's the error?

    • @mmbower1
      @mmbower1 2 роки тому

      @@RoadsideCoder the build succeeds and it deploys but I still get the 'application error' screen when I open the app. Heroku logs show "error code=H10 desc="App crashed" method=GET path="/" "

    • @RoadsideCoder
      @RoadsideCoder  2 роки тому

      @@mmbower1 have u tried both deployment ways that I've shown in video?

    • @mmbower1
      @mmbower1 2 роки тому

      @@RoadsideCoder yes

    • @rupeshgupta369
      @rupeshgupta369 2 роки тому

      @@mmbower1 did you got the solutions?

  • @hemanthkumar9723
    @hemanthkumar9723 Рік тому

    Duud in the video description you mentioned it is a App but you showed in web browser how it works..

  • @chinmaykulkarni2879
    @chinmaykulkarni2879 2 роки тому

    bro i am getting this error - 2022-01-09T15:25:52.755943+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

    • @chinmaykulkarni2879
      @chinmaykulkarni2879 2 роки тому

      no issues i fixed it, i was listening to 5000 instead of PORT

  • @timmukhamedov4674
    @timmukhamedov4674 2 роки тому

    I dont understand. You have "process.env.PORT || 5000" and your env PORT is 5000. WHere did you get localhost 3000 from?