MERN Stack Project | Ecommerce Website | Create Page API

  Рет қаралды 8,887

Rizwan Khan

Rizwan Khan

Күн бұрын

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-xv4br
@KamranKhan-xv4br 4 жыл бұрын
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
@taranewstime6909
@taranewstime6909 4 жыл бұрын
Bhai , thank you for proving a such a good level of coding concept , god bless you bhai
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Thank you bro god bless you too
@slimslam4767
@slimslam4767 4 жыл бұрын
Sweet, you are just giving me joy sir, i love the pace you are uploading the videos... it's faster now.. Thank you sir
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Justin Edy your welcome
@robinkartik6356
@robinkartik6356 4 жыл бұрын
Great Sir.
@sucayono8848
@sucayono8848 4 жыл бұрын
Awesome as always. Thank you Sir!
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
your welcome
@ba-en1io
@ba-en1io 4 жыл бұрын
Thank you sir for the amazing tutorials! Really appreciate your efforts
@bilalullahkhan5517
@bilalullahkhan5517 3 жыл бұрын
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
@OliverBlackstone007
@OliverBlackstone007 3 жыл бұрын
Excellent job brother. 😃😃😃
@_NguyenThanhPhu-xi5ih
@_NguyenThanhPhu-xi5ih 3 жыл бұрын
bro. this comment save my day. thank a lot bro
@souravarefin804
@souravarefin804 3 жыл бұрын
bro.do u finish this full project?can u give me the source code please...there is no home page vdo..
@_NguyenThanhPhu-xi5ih
@_NguyenThanhPhu-xi5ih 3 жыл бұрын
@@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!
@souravarefin804
@souravarefin804 3 жыл бұрын
@@_NguyenThanhPhu-xi5ih where the home page?
@daveglad3554
@daveglad3554 4 жыл бұрын
Amazing 💖🙏😍
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Dave Glad thanks
@PranshulAgr
@PranshulAgr 4 жыл бұрын
Sir waiting for the next video
@itdevelopment4590
@itdevelopment4590 2 жыл бұрын
done❤
@junangameplays3271
@junangameplays3271 4 жыл бұрын
Thank u man!! awesome
@glenbensondeguzman4643
@glenbensondeguzman4643 4 жыл бұрын
Thank you very much sir
@bharathkumarnarayana6861
@bharathkumarnarayana6861 4 жыл бұрын
hi bro amazing series, thanks for this but please give the part numbering for the videos
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
bharathkumar narayana sure
@dhaouiala2626
@dhaouiala2626 3 жыл бұрын
plz i have a problem on selecting categories : "TypeError: Cannot read property 'type' of undefined" on " setType(category.type);
@bilalullahkhan5517
@bilalullahkhan5517 3 жыл бұрын
Did you fix your error. Bcoz I m getting the same.
@dhaouiala2626
@dhaouiala2626 3 жыл бұрын
@@bilalullahkhan5517 no bro i didnt its the last time i work react js haha
@bilalullahkhan5517
@bilalullahkhan5517 3 жыл бұрын
@@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.
@dhaouiala2626
@dhaouiala2626 3 жыл бұрын
@@bilalullahkhan5517 yes thats what i did u have been a while in angular and its more better even the architechture ...
@bilalullahkhan5517
@bilalullahkhan5517 3 жыл бұрын
@@dhaouiala2626 so you switched on angular.
@taranewstime6909
@taranewstime6909 4 жыл бұрын
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
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
As of now we will use only email for user verification later we will add social media verification
@dhilipbeece9256
@dhilipbeece9256 4 жыл бұрын
when will complete this projects sir? and how many videos pending sir?
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Core functionality such as admins operation and ecommerce product checkout will be completed till mid november and revamp will be continued
@draigun3503
@draigun3503 4 жыл бұрын
@@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
@dhilipbeece9256
@dhilipbeece9256 4 жыл бұрын
@@RizwanKhanDeveloper Sir, Thank you for your information
@Harshmishra-mj7zf
@Harshmishra-mj7zf 4 жыл бұрын
Bro can u plzz tell that will u also create the platform for seller too. Like Admin,user and seller
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Harsh mishra not in the scope
@gauthamsharma4969
@gauthamsharma4969 4 жыл бұрын
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
@webdeveloper9231
@webdeveloper9231 4 жыл бұрын
Hyy bro, how long this playlist will go ???
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Probably 17 or 18 more videos
@webdeveloper9231
@webdeveloper9231 4 жыл бұрын
@@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 👍👍👍
@dhilipbeece9256
@dhilipbeece9256 4 жыл бұрын
Hi Bro today 14-10-2020. last video uploaded 11-10-2020. Next video ? we are waiting....
@PranshulAgr
@PranshulAgr 4 жыл бұрын
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
@coldplan87
@coldplan87 3 жыл бұрын
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.
@ahmadfaraz3678
@ahmadfaraz3678 4 жыл бұрын
Font is too small
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
thanks i will increase from next part
@PranshulAgr
@PranshulAgr 4 жыл бұрын
Sir i am logged out again and again after your last changes please help me out
@RizwanKhanDeveloper
@RizwanKhanDeveloper 4 жыл бұрын
Pranshul Agrawal check the request and response
@PranshulAgr
@PranshulAgr 4 жыл бұрын
@@RizwanKhanDeveloper sir i checked it but cannot be resolved
MERN Stack Project | Ecommerce Website | Admin Category Update - 20
1:09:59
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Putin Starts a New War / Secret Documents Caught on Video
12:31
NEXTA Live
Рет қаралды 294 М.
How To Manage User Roles In Node.js
22:45
Web Dev Simplified
Рет қаралды 315 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 448 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 75 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 662 М.
Build an e-commerce site... with a twist - Web Dev Challenge S1E3
26:20
Learn With Jason
Рет қаралды 263 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 948 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН