At 1:16:00 if anyone getting the SQL or the cors error, follow the following steps: 1) To resolve the SQL error, npm install mysql2 and update the import statement (import mysql from 'mysql2') 2) To resolve the cors error, npm install cors and -> import cors from ''cors' . Then, include this in your code - > app.use(cors()); Hope this helps!
Because of your tutorials. Learning CRUD from reactjs, nodejs, and express became easy for me to understand, compared to the other tutorials. What a talent. I will remember you in the future Mark that 🙂🙌👐👏👏👏👏🙏🙏🙏🙏🙏. You are helping a lot of beginners and i am one of them. Thank you!
So refreshing to see a fullstack project-based tutorial that doesn't copy-paste CSS styling so that "we can focus on the logic" BS like most project-based tutorials here on youtube. Big plus for using MySQL instead of Mongodb (eew).
Waao Safak, I was searching for a tutorial to build my blog for a week but didn't find anyone useful. Here you come as a savior. You are awesome Safatk. We all love you for the work
Hey brother, I am struck at fetching data manually based on id matched 34:28 the below is the homepage
{ posts.map((post) => (
{ post.title }
{ post.desc } Read More
)) } whereas the below is the single page const Single = () => { let { postId } = useParams(); const postIdInt = parseInt(postId, 10); // Manually provide post data for multiple IDs const postData = [ { id: 1, title: "Post 1 Title", description: "Post 1 Description" }, { id: 2, title: "Post 2 Title", description: "Post 2 Description" }, { id: 3, title: "Post 3 Title", description: "Post 3 Description" }, { id: 4, title: "Post 4 Title", description: "Post 4 Description" } // Add other fields as needed ]; // Find the post data for the current postId const selectedPost = postData.find(post => post.id === postIdInt); if (!selectedPost) { return Post not found; // Handle case where post is not found } return (
Post Details Post ID: { postIdInt } Title: { selectedPost.title } Description: { selectedPost.description } {/* Display other fields for the selected post as needed */ }
); } export default Single; plz do helpful need ...
You are the best teacher here on CZcams as your voice is also soothing and one can hear n understand everything well!! Thanks for the wonderful content
Thank you so much for tackling this stack! I learn more with your tutorials than in 5 months of training in web development. Thanks to you, I will be able to pass my diploma more serenely.
Waouh, this is great. I built a project in WordPress which use MySQL and i want to migrate to React with node, this is what i was looking for, a react projects with MySQL instead of mongo db
Hello sir. I did it till the end , with several errors that i solved throgh the diskord, i am so exited , thanks a lot for such good feelings!!!!!!!!!!!!
you are an example to all youtubers who act "first day on the job as a software engineer" keep on making videos like this and my suggestion is to post a video that will help us guide one of these technologies to learn and what project to do for our portfolio without any help from CZcams tutorials to be ready to apply for jobs and get accepted to the interview and start working I guarantee you will have a great result from that video views and will be shared a lot.
oh man I can't believe this is good and wrong in so many ways! Lama Dev doesn't answer any comment or question. The main folder has been updated or replaced with something new. If you follow alongside you will face frustration when connecting the client to the api.
Thank you for this wonderful tutorial. It is a great start! I've been doing either front-end or back-end projects, but now I see how it all works together. I had a bit of trouble with the database (because I have never learned about it), but pushed through anyways.
i had a error with bcryptjs because its a old library , use bcrypt instead and follow along the npm for use. i was having lots of axios 404 ( forgot to change route posts to auth) and then the error 500 come ... its was the hash from bcryptjs not working properly
To not repeat yourself (DRY), it is better to create a .flexContainer class in CSS, because here we have lots of elements with display: flex, justify-content: center and align-items: center. Also, the effect for the post image doesn't have to be made with pseudoelement, it is easier to do this with just box-shadow.
He is focused on logic and steps for us to understand the flow. It is up to us to improve the CSS. Also, this tutorial does not aim to learn CSS 🙄, if you noticed☺
@@JustTrying2002 I think that if you have an excellent or at least good understanding of Vanilla CSS, Tailwind CSS is much easier for you to use since the fundamental concepts would be crystal clear and the foundations will be very strong.
You can avoid doing that shadow thingy with the ::after and just write this under img: box-shadow: 15px 15px 0 $lightGreen; That line makes the exact same thing than those 8 lines :)
If anyone having Axios Internal Server Error 500, you need to upload an image (without spaces) when you post because it is required, also you need to create "upload" folder in /client/public if it doesn't exist because Windows doesn't automatically mkdir it, also MySQL DB with table posts need "cat" alongside "title", "desc", etc as mentioned in 1:38:36
@@tamilvani9172 Create "upload" folder in /client/public and make sure you have the MySQL DB ready with all the required elements like title, desc, and cat in posts table (Don't forget users table too). You must upload photo when posting and its name without spaces (Make sure your running server doesn't have spaces like username if you are in Windows (C:\Users\Joe Doe\Desktop\Project) so you should use at (C:\Project))
1. in node js express use cors to avoid cors error const corsOptions = { origin: true, credentials: true, }; const app = express() app.use(cors(corsOptions)); 2. in axios login add { withCredentials: true } to set cookie 3. use jsx not js as file extension
Hello man, I encountered the errors as you commented above and thanks to you I have successfully fixed them. but I can't delete cookies like the instructions in the video, do you have any way?
Awesome video as always! Are you planning to make a video on how to prevent certain users or user groups from seeing parts of the website if they dont have neccessary permissions?
Hey Lama Dev, this is an exceptional tutorial and I learned a lot although I noticed you only have 3 videos on this stack. I'm humbly asking that you do more. I did all the tutorials and they have been super educational. I only have one request, can you make an Authentication tutorial that includes different user roles and permisions, for example, we could have a load management app that has 3 different users, Admin which will have all permisions, an agent with restricted permisions, and a user. Thanks in advance
Thank you Lama Dev, awesome work Some improvements/fixes for anyone watching: 0. Cant connect database? Change db.js to: export const db = mysql.createPool({ connectionLimit: 10, host: 'localhost', user: 'root', password: 'yourpass', database: 'blog', debug: false }) ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_current_password'; 1. To fix image not uploading/upload image files with ' ' (spaces) : in index.js, const storage = multer.diskStorage, add: file.originalname = file.originalname.replace(/\s/g, ""); The upload of project only worked with non-space files. 2. To hide Post while not logged in: {currentUser && Post
Thank you so much for this tutorial. It is much needed for me. I learned alot. I do notice that project cannot logout when you are in the Single Post page. Though I think it's for me to solve that one. Thanks!.
cannot follow as I can't follow the whole clone git and install library. After cloning, there's already a clear difference between what the repo in the video has and the current repo. Still, I continued on, thinking that it's not a big deal, until I went and installed the library. There seems to be lacking when installing the library like the "node_modules" file. and from there can't "yarn start" as the script doesn't exist. I tried cloning the finish "blog-app" repo instead. Installed the library and it installed what was on the video. typing yarn start does launch the app. Does anybody have a copy of the old repo, the repo version from this video?
I had the same issue, I had to make sure that I had the follow added to my package.json - "scripts": { "start": "vite", "build": "vite build", "preview": "vite preview", "lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0" }, However be warned, halfway through the video there is an issue with Axios package and not being able to create a connection to the backend server of port 8800. I was riddled with 404 errors which I have still yet to resolve.
I just love the content that you keep posting here . It is soothing to our ears when you say everytime -LIKE😜 THAT . Sir Build a banking app with the help of Mern because no one has done this yet . 😄😄
The cookie generated is not showing in my application cookie storage when I inspect. But it is showing in the network section at the headers. How can solve this?
Only problem I see with this project is putting the user object in localstorage. A user can simply update the value of the 'user' key in localstorage and replace the name or email with a different one. Is there a better way of storing user details that need to be displayed in a page somewhere safer than localstorage?
👍👍really very impressive !! i was searching for react + mysql fullstack step-by-step guide and found it (feels lucky). hope i will learn authentication & authorisation, menu with roles/permission etc. and if possible handling of html elements like dropdown list, dependent dropdown list, multi select (tags), checkboxes, radio button/groups etc. regards
Great video. Has anyone gotten around the "Uncaught (in promise) TypeError: Converting circular structure to JSON" error msg in console around the 1:36:00 time mark when trying to log out and clear cookies/localstorage?
figured it out, in case anyone needs to know -> its because in authContext, the logout axios code line, you dont need a second argument of inputs, unlike the login.
First thatnk you for such a great tutorial and please is would you mind making a short video to show how we can store the image to s3 bucket AWS and save it's url to MySQL?
What good project!, I have learned a lot from this channel, when ever I received a new notification of a new video from this beautiful channel I can't wait for a minute with out clicking on it😄. By the way, I have an error with this bog app project ☹️ I'm getting error while trying to submit registration form , some times it Shows "network error" some time it shows. "access blocked by cors" Can any one help me through this since it was not demonstrated in the project's video? I almost spent 7 days facing this error and I can't fix it. Because I'm new to react js
i am facing problem while deleting post , 1:57:04, req.cookies.access_token is not accessing the access_token from the cookies and showing error 401 (Unauthorized) . Has anyone solve this issue ??????
Hi, a little late but maybe still usefull to someone. the easy way is adding withCredentials in the axios call await axios.delete(`posts/${postId}`,{ withCredentials: true, });
Objects are not valid as a React child (found: object with keys {code, fatal}). If you meant to render a collection of children, use an array instead. please help..
I found the problem. In my case i wrote a wrong method in routes/auth.js file. There gotta be a post method *router.post("/register", register)* And also replaced localhost for 127.0.0.1 in db.js file
@@klerkmaxvell9902 sorry bro, that was a while ago. The tutorial is outdated a lot and there might be issues caused by dependencies incompatibility. I'm still a lame amateur in fullstack programming :/
@@cina-tech thank you for responding bro, actually either this or importing the cors has solved the problem. in my case i also made an syntax error in db.js file. thats why the problem didnt solved at first.
At 1:16:00 if anyone getting the SQL or the cors error, follow the following steps:
1) To resolve the SQL error, npm install mysql2 and update the import statement (import mysql from 'mysql2')
2) To resolve the cors error, npm install cors and -> import cors from ''cors' . Then, include this in your code - > app.use(cors());
Hope this helps!
thanks! I couldn't find the error!
thank you so much, thank you
thank you a lot!😀
We did the same for SQL error but the data is not inserting into the user table ...it gives pass parse error...can you please helo
Still getting error at this time with mysql pls help
Because of your tutorials. Learning CRUD from reactjs, nodejs, and express became easy for me to understand, compared to the other tutorials. What a talent. I will remember you in the future Mark that 🙂🙌👐👏👏👏👏🙏🙏🙏🙏🙏. You are helping a lot of beginners and i am one of them. Thank you!
So refreshing to see a fullstack project-based tutorial that doesn't copy-paste CSS styling so that "we can focus on the logic" BS like most project-based tutorials here on youtube. Big plus for using MySQL instead of Mongodb (eew).
Once they copy and paste the css I get completely disoriented...I really really appreciate the work done by lamadev ...he is absolutely the best ❤
I also like the mysql
And without bootstrap
I thought i was the only one who don't want to see copy paste tutorials @oghenefejiroprinceimene6090
My first touch of Node.js after a "thousand" years in PHP. Thanks for this guide.
Waao Safak,
I was searching for a tutorial to build my blog for a week but didn't find anyone useful.
Here you come as a savior. You are awesome Safatk.
We all love you for the work
Hey brother,
I am struck at fetching data manually based on id matched 34:28
the below is the homepage
{
posts.map((post) => (
{ post.title }
{ post.desc }
Read More
))
}
whereas the below is the single page
const Single = () => {
let { postId } = useParams();
const postIdInt = parseInt(postId, 10);
// Manually provide post data for multiple IDs
const postData = [
{ id: 1, title: "Post 1 Title", description: "Post 1 Description" },
{ id: 2, title: "Post 2 Title", description: "Post 2 Description" },
{ id: 3, title: "Post 3 Title", description: "Post 3 Description" },
{ id: 4, title: "Post 4 Title", description: "Post 4 Description" }
// Add other fields as needed
];
// Find the post data for the current postId
const selectedPost = postData.find(post => post.id === postIdInt);
if (!selectedPost) {
return Post not found; // Handle case where post is not found
}
return (
Post Details
Post ID: { postIdInt }
Title: { selectedPost.title }
Description: { selectedPost.description }
{/* Display other fields for the selected post as needed */ }
);
}
export default Single;
plz do helpful need ...
You are the best teacher here on CZcams as your voice is also soothing and one can hear n understand everything well!!
Thanks for the wonderful content
His voice is so relaxing and embracing
Thank you so much for tackling this stack! I learn more with your tutorials than in 5 months of training in web development. Thanks to you, I will be able to pass my diploma more serenely.
Please do more MySQL and Nodejs brother!!! Much appreciated ❤️
Thank you for your videos. I'm following your tutorials and I have started looking for a job because I'm confident now. Wish me luck.
I had issues in my project, then I came across you, thank you very much :)
Waouh, this is great. I built a project in WordPress which use MySQL and i want to migrate to React with node, this is what i was looking for, a react projects with MySQL instead of mongo db
Hello sir. I did it till the end , with several errors that i solved throgh the diskord, i am so exited , thanks a lot for such good feelings!!!!!!!!!!!!
Please make more videos with this stack. We loved it. Thank you so much!!!
I just follow this video to build a blog. This is amazing. Thank you
This man is awesome, don't stop man this tutorials are amazing
Wow look at the design, How clean is that !!
you are an example to all youtubers who act "first day on the job as a software engineer" keep on making videos like this and my suggestion is to post a video that will help us guide one of these technologies to learn and what project to do for our portfolio without any help from CZcams tutorials to be ready to apply for jobs and get accepted to the interview and start working I guarantee you will have a great result from that video views and will be shared a lot.
If you don't mind, can you make a fullstack tutorial that includes react, redux, and saga? Nonetheless, thank you very much for this great tutorial.
oh man I can't believe this is good and wrong in so many ways! Lama Dev doesn't answer any comment or question. The main folder has been updated or replaced with something new. If you follow alongside you will face frustration when connecting the client to the api.
Thank you for this wonderful tutorial. It is a great start! I've been doing either front-end or back-end projects, but now I see how it all works together. I had a bit of trouble with the database (because I have never learned about it), but pushed through anyways.
i had a error with bcryptjs because its a old library , use bcrypt instead and follow along the npm for use. i was having lots of axios 404 ( forgot to change route posts to auth) and then the error 500 come ... its was the hash from bcryptjs not working properly
what did u do to resolve this ?
@@DavidSilva-mf6rj use the new bcrypt library
you just saved me hours of time wasted on this error. may your pillow be always cold, good man.
To not repeat yourself (DRY), it is better to create a .flexContainer class in CSS, because here we have lots of elements with display: flex, justify-content: center and align-items: center.
Also, the effect for the post image doesn't have to be made with pseudoelement, it is easier to do this with just box-shadow.
He is doing for beginner to understand.
we can also use libraries such as TailwindCSS to avoid writing repeating CSS.
@@aanyasah1775, it's working, please check again.
He is focused on logic and steps for us to understand the flow. It is up to us to improve the CSS. Also, this tutorial does not aim to learn CSS 🙄, if you noticed☺
@@JustTrying2002 I think that if you have an excellent or at least good understanding of Vanilla CSS, Tailwind CSS is much easier for you to use since the fundamental concepts would be crystal clear and the foundations will be very strong.
Wow lamaa.. you are the best and the best channel programming ever. I think this is a premium course
You can avoid doing that shadow thingy with the ::after and just write this under img:
box-shadow: 15px 15px 0 $lightGreen;
That line makes the exact same thing than those 8 lines :)
If anyone having Axios Internal Server Error 500, you need to upload an image (without spaces) when you post because it is required, also you need to create "upload" folder in /client/public if it doesn't exist because Windows doesn't automatically mkdir it, also MySQL DB with table posts need "cat" alongside "title", "desc", etc as mentioned in 1:38:36
I am facing this issue now. What to do?
@@tamilvani9172 Create "upload" folder in /client/public and make sure you have the MySQL DB ready with all the required elements like title, desc, and cat in posts table (Don't forget users table too). You must upload photo when posting and its name without spaces (Make sure your running server doesn't have spaces like username if you are in Windows (C:\Users\Joe Doe\Desktop\Project) so you should use at (C:\Project))
Best tutorial so far on React and Node.
Though I wrote mine in typescript which gave me more insight on how to use type initiative
why dont i see any public folder in your github?
1. in node js express use cors to avoid cors error
const corsOptions = {
origin: true,
credentials: true,
};
const app = express()
app.use(cors(corsOptions));
2. in axios login add { withCredentials: true } to set cookie
3. use jsx not js as file extension
Hello man, I encountered the errors as you commented above and thanks to you I have successfully fixed them. but I can't delete cookies like the instructions in the video, do you have any way?
Top notch project.
What would've been even nicer would be a refresh token to keep user logged in in case of activity.
Awesome video as always! Are you planning to make a video on how to prevent certain users or user groups from seeing parts of the website if they dont have neccessary permissions?
Thanks for this. I will try more complex with myself.
This man is amazing 😍....thanks Lama ur the saviour
Благодарю за урок. Много нового интересного и полезного!
Hey Lama Dev, this is an exceptional tutorial and I learned a lot although I noticed you only have 3 videos on this stack. I'm humbly asking that you do more. I did all the tutorials and they have been super educational. I only have one request, can you make an Authentication tutorial that includes different user roles and permisions, for example, we could have a load management app that has 3 different users, Admin which will have all permisions, an agent with restricted permisions, and a user. Thanks in advance
Thank you for this tutorial. ❤ Helped me a lot to get started.
You are doing so amazing job. Keep making these videos. Thanks a lot.
Thank you Lama Dev, awesome work
Some improvements/fixes for anyone watching:
0. Cant connect database?
Change db.js to:
export const db = mysql.createPool({
connectionLimit: 10,
host: 'localhost',
user: 'root',
password: 'yourpass',
database: 'blog',
debug: false
})
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_current_password';
1. To fix image not uploading/upload image files with ' ' (spaces) :
in index.js, const storage = multer.diskStorage, add: file.originalname = file.originalname.replace(/\s/g, "");
The upload of project only worked with non-space files.
2. To hide Post while not logged in:
{currentUser &&
Post
}
3. Use CkEditor5 if you need to paste Table
cannot edit and create :(
right time, learning and actually building this. awesome.. thank you
Thank you for always providing us with great content.
directly from Angola.
Please do more complex projects using this stack. This is awesome. Many thanks
Really liked the tutorial. Thank you! 💙
Finally, some MySQL!!!
this the best vide i have ever watch. thanks lama.
hey can't configure it. there is NO Public Folder in the react-mini github
Thank you so much for this tutorial. It is much needed for me. I learned alot. I do notice that project cannot logout when you are in the Single Post page. Though I think it's for me to solve that one. Thanks!.
cannot follow as I can't follow the whole clone git and install library. After cloning, there's already a clear difference between what the repo in the video has and the current repo. Still, I continued on, thinking that it's not a big deal, until I went and installed the library. There seems to be lacking when installing the library like the "node_modules" file. and from there can't "yarn start" as the script doesn't exist. I tried cloning the finish "blog-app" repo instead. Installed the library and it installed what was on the video. typing yarn start does launch the app.
Does anybody have a copy of the old repo, the repo version from this video?
I had the same issue, I had to make sure that I had the follow added to my package.json - "scripts": {
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0"
},
However be warned, halfway through the video there is an issue with Axios package and not being able to create a connection to the backend server of port 8800. I was riddled with 404 errors which I have still yet to resolve.
@@DaYomstar did you find any solution for it?
You doing a great job man thank you for this 🎉
I just love the content that you keep posting here . It is soothing to our ears when you say everytime -LIKE😜 THAT . Sir Build a banking app with the help of Mern because no one has done this yet . 😄😄
The cookie generated is not showing in my application cookie storage when I inspect. But it is showing in the network section at the headers. How can solve this?
Just one word -> Excellent!
It is a great tutorial, thank you Lama.
This dude is so chill! I like your content very much, dude! Keep up the great work you're doing!
One of the best channels 👌, thanks a lot .
Wow...excellent. Thank you from the bottom of my heart.
Perfect! thanks very much! amazing work!
I really liked it , you just earned a subscriber
Hi safak. I think the deployment of react-mini doesn't work anymore, because the react-mini good branch has not the same file structure anymore
I stuck in the react-mini approach as well...
thank you for your support
i love the way you explain 😚
Never seen a video that's so good and simultaneously so bad at the same time! Kudos to you sir.
Only problem I see with this project is putting the user object in localstorage. A user can simply update the value of the 'user' key in localstorage and replace the name or email with a different one. Is there a better way of storing user details that need to be displayed in a page somewhere safer than localstorage?
👍👍really very impressive !! i was searching for react + mysql fullstack step-by-step guide and found it (feels lucky). hope i will learn authentication & authorisation, menu with roles/permission etc. and if possible handling of html elements like dropdown list, dependent dropdown list, multi select (tags), checkboxes, radio button/groups etc. regards
👆Send a direct message for help 🆙 ⬆️
Tks for the tutorial! I learned a lot! ✌
Thanks a million, I stopped many times to give u a like and then i see that I already did 😂❤
Thank you so much man.pleasemake more video, and complex logic for mysql
How come you can create cookies from node using CookieParser to a react client page? I have tried a thousand and one ways and it doesn't work.
because your proxy didn't work
you used vite right?
The HERO OF REACT LAMADEV
respectable tutorial ! impressive !
Have you finished the whole video?
Fantastic need more in react node mysql
My lap is waiting to try this masterpiece
This is not ordinary, what is going on here?, Lama has come again, this project is off the chart.
I'm gonna cry , thank u smmm for this video 🥺😭🤍
The best content of youtube.
Nice work man. I really appreciate.
Great video. Has anyone gotten around the "Uncaught (in promise) TypeError: Converting circular structure to JSON" error msg in console around the 1:36:00 time mark when trying to log out and clear cookies/localstorage?
figured it out, in case anyone needs to know -> its because in authContext, the logout axios code line, you dont need a second argument of inputs, unlike the login.
@@bobbylee5318 thanks a lot, that's helpful for me
@@bobbylee5318 thanks :v
Great session, Thank you.. Please continue some projectes in this stack + ORM tools like typeORM.
You didn't use cors middleware but it's still working, how? Please reply
First thatnk you for such a great tutorial and please is would you mind making a short video to show how we can store the image to s3 bucket AWS and save it's url to MySQL?
Awesome Lama it's great video thank you
Thankyou love from India 💓
At point 1:51:23 who else not getting user image on web app just go to mysql and alter table users and add img column there
wow Thank you for this wonderful tutorial.
Great sir.. your great..Epic.. owsome teacher.. Thanks for ur efforts
thank you... We are waiting complex project :)
amazing amazing stuff.... really apriciated..... react with sql wow
Great tutorial. I hope you start making ReactNative tutorials as well.
What good project!,
I have learned a lot from this channel, when ever I received a new notification of a new video from this beautiful channel I can't wait for a minute with out clicking on it😄.
By the way, I have an error with this bog app project ☹️
I'm getting error while trying to submit registration form , some times it Shows "network error" some time it shows. "access blocked by cors"
Can any one help me through this since it was not demonstrated in the project's video?
I almost spent 7 days facing this error and I can't fix it. Because I'm new to react js
i am facing problem while deleting post , 1:57:04, req.cookies.access_token is not accessing the access_token from the cookies and showing error 401 (Unauthorized) . Has anyone solve this issue ??????
in your single.jsx, on the await axios.delete() for handleDelete, add {withCredentials: true} for its parameter alongside the /api/posts/${postId}
Hi, a little late but maybe still usefull to someone.
the easy way is adding withCredentials in the axios call
await axios.delete(`posts/${postId}`,{
withCredentials: true,
});
very organized work
nice tutorial !!
Sir Huge Respect to You ❤❤
Thank u!!! BTW The background style problem of the login and registration pages has not been solved yet
thanks again man. great work.
Thanks a lot my friend, your tutorials are amazing ❤❤
Can you make a video to explain what is dependency injection plzz !!
Objects are not valid as a React child (found: object with keys {code, fatal}). If you meant to render a collection of children, use an array instead.
please help..
It is very supportive Thanks Dev
Post 404 AxiosError "ERR_BAD_REQUEST" - doesnt work any solution for this error can someone help?
i've got the same problem, if you have already found the solution please tell
I found the problem. In my case i wrote a wrong method in routes/auth.js file. There gotta be a post method *router.post("/register", register)*
And also replaced localhost for 127.0.0.1 in db.js file
@@cina-tech it didn't resolve any problems in my case. Have you found any other solutions for it?
@@klerkmaxvell9902 sorry bro, that was a while ago. The tutorial is outdated a lot and there might be issues caused by dependencies incompatibility. I'm still a lame amateur in fullstack programming :/
@@cina-tech thank you for responding bro, actually either this or importing the cors has solved the problem. in my case i also made an syntax error in db.js file. thats why the problem didnt solved at first.
at 38.57
Honestly, I can't understand this video as a beginner because it's too fast and not clear. bdw im from Indonesia. thanks for your video
Hey Lama, You are great, keep building such amazing projects. I have one question how did you upload this api on hostinger shared hosting?
How can I add a reset / change password option? For users
Thank you for this video!! I really like how you explain things