hey friends, this is a mern stack project series. In this series we are developing an ecommerce website and in this video we will add create page api...
Пікірлер: 73
@KamranKhan-xv4br4 жыл бұрын
Rizwan you are doing great job. This MERN series is amazing, Thanks a lot for putting quality videos. May Allah SWT give u big success in life
@taranewstime69094 жыл бұрын
Bhai , thank you for proving a such a good level of coding concept , god bless you bhai
@RizwanKhanDeveloper4 жыл бұрын
Thank you bro god bless you too
@slimslam47674 жыл бұрын
Sweet, you are just giving me joy sir, i love the pace you are uploading the videos... it's faster now.. Thank you sir
@RizwanKhanDeveloper4 жыл бұрын
Justin Edy your welcome
@robinkartik63564 жыл бұрын
Great Sir.
@sucayono88484 жыл бұрын
Awesome as always. Thank you Sir!
@RizwanKhanDeveloper4 жыл бұрын
your welcome
@ba-en1io4 жыл бұрын
Thank you sir for the amazing tutorials! Really appreciate your efforts
@bilalullahkhan55173 жыл бұрын
sir i am getting this error when creating page :- "Page validation failed: category: Cast to ObjectId failed for value \"Electronics\" at path \"category\"" Edit:- so i got numerous errors in this part and by the help of God,fixed them all. the first one which popped up is the type error cannot read type of undefined which occured in setType(category.type). The above error easily fixed in find() method in this line--- const category = categories.find(category => category.name == e.target.value); //the above code tell us that we have to find,select & retrive the data of selected category. for ex:-e.target.value select the name of selected category like if we select "electronics" then e.target.value is equals to electronics.if you select mobile,then e.target.value equals to mobile. now after that categories.find() method query and select the category which matces to the e.target.value,if you select electronics then it will select and store electronics value,id,name etc.remember that you use category.name bcoz in category.name we have name of the all categories.if you still get an error of undefined try to rename it to value or check in console.log(categories) what name you have provided.in my case its category.name. part 2 of error:- now after that i got another error which is page validation failed: category: cast to objectid failed for value something like that. to fix this error create new varible of catid like this := const [catid,setCatid]=useState(''); now on category change method match your code like below const onCategoryChange=(e)=>{ const category = categories.find(category => category.name == e.target.value); setCategoryId(e.target.value);//"category name ex: `Electronics`" setCatid(category.value);//E "category value which is the mongodb id ex:`6048a1e23efb7c0360e6a167`" setType(category.type); //"category type.In my case it is undefined bcoz i didn't pre-define it" } and after above part go to your forms and replace this:- form.append('category',categoryId); to form.append('category',catid); Thats all. i have fixed above two erros with above approach. all thnx to god
@OliverBlackstone0073 жыл бұрын
Excellent job brother. 😃😃😃
@_NguyenThanhPhu-xi5ih3 жыл бұрын
bro. this comment save my day. thank a lot bro
@souravarefin8043 жыл бұрын
bro.do u finish this full project?can u give me the source code please...there is no home page vdo..
@_NguyenThanhPhu-xi5ih3 жыл бұрын
@@souravarefin804 he didnot do the home page bro. but i think u can copy from the page he was create to create the home page bro!
@souravarefin8043 жыл бұрын
@@_NguyenThanhPhu-xi5ih where the home page?
@daveglad35544 жыл бұрын
Amazing 💖🙏😍
@RizwanKhanDeveloper4 жыл бұрын
Dave Glad thanks
@PranshulAgr4 жыл бұрын
Sir waiting for the next video
@itdevelopment45902 жыл бұрын
done❤
@junangameplays32714 жыл бұрын
Thank u man!! awesome
@glenbensondeguzman46434 жыл бұрын
Thank you very much sir
@bharathkumarnarayana68614 жыл бұрын
hi bro amazing series, thanks for this but please give the part numbering for the videos
@RizwanKhanDeveloper4 жыл бұрын
bharathkumar narayana sure
@dhaouiala26263 жыл бұрын
plz i have a problem on selecting categories : "TypeError: Cannot read property 'type' of undefined" on " setType(category.type);
@bilalullahkhan55173 жыл бұрын
Did you fix your error. Bcoz I m getting the same.
@dhaouiala26263 жыл бұрын
@@bilalullahkhan5517 no bro i didnt its the last time i work react js haha
@bilalullahkhan55173 жыл бұрын
@@dhaouiala2626 😂😂so the recently new comers are getting this error. I have checked all 7 or 6 months ago people's didn't have that error. I think we need to change the syntax.
@dhaouiala26263 жыл бұрын
@@bilalullahkhan5517 yes thats what i did u have been a while in angular and its more better even the architechture ...
@bilalullahkhan55173 жыл бұрын
@@dhaouiala2626 so you switched on angular.
@taranewstime69094 жыл бұрын
Bhai I have suggestion : - Please make videos user authentication using mobile and email "OTP" - one more is that "user login" or "password change" link will come to registered email id , user can use that link for change password and user can login to the application by this link which is display in registered mail box inbox. - social media login authentication , user can access application login or registration using own gmail, facebook etc
@RizwanKhanDeveloper4 жыл бұрын
As of now we will use only email for user verification later we will add social media verification
@dhilipbeece92564 жыл бұрын
when will complete this projects sir? and how many videos pending sir?
@RizwanKhanDeveloper4 жыл бұрын
Core functionality such as admins operation and ecommerce product checkout will be completed till mid november and revamp will be continued
@draigun35034 жыл бұрын
@@RizwanKhanDeveloper no problem.. take your time.. but please make a complete one with all functionality and with detailed explaination.. because majority audience over here is newbie.. thanks
@dhilipbeece92564 жыл бұрын
@@RizwanKhanDeveloper Sir, Thank you for your information
@Harshmishra-mj7zf4 жыл бұрын
Bro can u plzz tell that will u also create the platform for seller too. Like Admin,user and seller
@RizwanKhanDeveloper4 жыл бұрын
Harsh mishra not in the scope
@gauthamsharma49694 жыл бұрын
Sir i am following every video of urs in PHP e-commerce website I'm getting error in admin panel the quantity is not getting subtracted plz help me sir plzzzzz
@webdeveloper92314 жыл бұрын
Hyy bro, how long this playlist will go ???
@RizwanKhanDeveloper4 жыл бұрын
Probably 17 or 18 more videos
@webdeveloper92314 жыл бұрын
@@RizwanKhanDeveloper I hope you complete the whole project ASAP. Because I'm so excited for the final version. To be honest this is the best 👍👍👍
@dhilipbeece92564 жыл бұрын
Hi Bro today 14-10-2020. last video uploaded 11-10-2020. Next video ? we are waiting....
@PranshulAgr4 жыл бұрын
Sir remove the line number 27 in mern-backend/src/controller/admin/page.js so that the issue of geeting create page failure is resolved
@coldplan873 жыл бұрын
Does anyone know the solution for this error: TypeError: res.data is undefined I keep getting this error whenever I try to create a new page.
@ahmadfaraz36784 жыл бұрын
Font is too small
@RizwanKhanDeveloper4 жыл бұрын
thanks i will increase from next part
@PranshulAgr4 жыл бұрын
Sir i am logged out again and again after your last changes please help me out
@RizwanKhanDeveloper4 жыл бұрын
Pranshul Agrawal check the request and response
@PranshulAgr4 жыл бұрын
@@RizwanKhanDeveloper sir i checked it but cannot be resolved