Learn The MERN Stack - Redux Goals & Deply
Why Stack Overflow recommends it
Stack Overflow users link it when they are following Brad Traversy's MERN tutorial and hit errors, especially around Heroku deployment and Redux goal slices, or when they need the part on serving React from an Express backend.
Recommended by 1 people across 1 different months, 2022 to 2024.
What it is
A Traversy Media tutorial that finishes a MERN stack goal-tracker app: it adds goals to the Redux state with async thunks, builds the dashboard and goal form, and supports fetching and deleting goals. The last part prepares the app for deployment to Heroku, including env variables and a postbuild script.
What people said
Recommends anudeep · 2024-01 · Stack Overflow · on “Creating a React/Express.js application and moving away from localhost (deploying) relative paths for the server”
In case you are planing to host your backend and serve React frontend on the backend see: [this video] see from prepare the deployment part
Cites Ope Afolabi · 2022-02 · Stack Overflow · on “! [remote rejected] master -> master (pre-receive hook declined) when trying to deploy mern app to heroku”
I am a beginner when it comes to NodeJs and I'm following a MERN stack youtube tutorial recently posted by brad traversy [this video] . I have completed the tutorial and have gotten to the deployment section of the application but when following the tutorial I get the following error. I don't really understand where this issue is coming from so I attached the server.js file and package.json file as well as the actual Heroku error in the terminal. Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 12 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 21.14 KiB | 10.57 MiB/s, done. Total 5 (delta 0), reused 0 (delta 0), pack-reus
Cites Anish Dalvi · 2022-11 · Stack Overflow · on “"Cannot read properties of null (reading 'token') " Reacjs, Redux”
I am watching Brad Traversy MERN Tutorial. In which he has created a Goal Setter app. I have almost completed it but getting an error in reset() function of goalSlice. Dont know what the actual problem is. When the reset() is dispatch from the Dashboard.jsx, and after adding goals and viewing them in redux devtool in chrome. When I press logout button, the chrome gets hang and the console has this message Cannot read properties of null (reading 'token') I believe this is the console.log(message) which is in Dashboard.jsx but i have no idea about resolving it. I tried commenting the dispatch(reset()) which removes this error, but I also have to reset the goals when user is logged out. Anyone