this is how I did it and also changed the route to router.route('/login').post(validate(schema.loginSchema),authc.login); const loginSchema = z.object({ email: z .string({ required_error: "Email is required." }) .trim() .email({ message: "Invalid email-address" }) .min(3, { message: "Email must be exactly of 3 characters." }) .max(255, { message: "Email must not be more than 255 characters." }), password: z .string({ required_error: "Password is required." }) .min(7, { message: "Password must atleast be of 6 characters." }) .max(1024, { message: "Password can't be greater than 1024 characters." }), }); module.exports = {signupSchema,loginSchema};
even when i enter all the fields while registering, i still get the extraDetails' message as "Name is required". Is it meant to be like this or am i missing something.
I need some help in react. Lets assume there are 50 products stored in an array. And I want to display some products in a dropdown say "Show More' and the remaining outside it. How can I do this?
Let's assume u want to show 10 products initially. Create a state whose initial value would be the first 10 products from the array. use map function to the state to render the products stored in that state. Now when clicked on 'show more' and an onclick function which append the the next 10 items using setState, like this - ()=> setProducts(p => [...p, ...arr.slice(n, n+10)]) update the value of n also accordingly
Sir i m not getting the source code of this project even after paying the amount on your website. The zip file is not containing this project source code. plz avail me this project code.
hello bhaiya , terminal per status , message , extraDetails dikh rha but postman per nhi dikh rha , aur postman aur terminal pe error aa rha ki (ReferenceError: error is not defined) aurat Layer.handle_error . Please iska solution bta dijiye
Hope you all love the video 🔗🌟 Get your Free Source Code and Notes now 👉 thapatechnical.shop/courses
Thapa sir aapki pujakaitem wali api ab kaam nhi kr rhi m aapka react ecommerce wali playlist s seekh rha hu
Pr ab mujhe smjh nhi aara jb tk api kaam nhi kregi products keise laaunga
Meine product ki api to banali pr singleproduct wali nhi chl rhi
Plss kuch kriye🥺
Or haa aap bhot mst smjhaate ho😍 thanks for all of this❤
Samajhiye bujhiye wala part mst hai😂
yes brother its really amazing i have copleted your old mernsyack series lot of changes
Bhaiya is great ❤❤❤
Itni khushi 😊// thank you bhaiya ❤
keep going brother your course is awesome👌👌
Completed 07/12/2024 12:00 AM
Amazing Video
thanku thapa bhaiya
Thank you sir ❤
this is how I did it and also changed the route to router.route('/login').post(validate(schema.loginSchema),authc.login);
const loginSchema = z.object({
email: z
.string({ required_error: "Email is required." })
.trim()
.email({ message: "Invalid email-address" })
.min(3, { message: "Email must be exactly of 3 characters." })
.max(255, { message: "Email must not be more than 255 characters." }),
password: z
.string({ required_error: "Password is required." })
.min(7, { message: "Password must atleast be of 6 characters." })
.max(1024, { message: "Password can't be greater than 1024 characters." }),
});
module.exports = {signupSchema,loginSchema};
even when i enter all the fields while registering, i still get the extraDetails' message as "Name is required". Is it meant to be like this or am i missing something.
in postman write username instead
source code link is not working
my database is not connecting unable to find the error
I need some help in react. Lets assume there are 50 products stored in an array. And I want to display some products in a dropdown say "Show More' and the remaining outside it. How can I do this?
Let's assume u want to show 10 products initially. Create a state whose initial value would be the first 10 products from the array. use map function to the state to render the products stored in that state. Now when clicked on 'show more' and an onclick function which append the the next 10 items using setState, like this -
()=> setProducts(p => [...p, ...arr.slice(n, n+10)])
update the value of n also accordingly
Sir aap dsa in js ka playlist laao because sbhe creator apne channel pe mern stack ka tutorial bnaa rahe hai loo
i have done it sir
Sir i m not getting the source code of this project even after paying the amount on your website. The zip file is not containing this project source code. plz avail me this project code.
BEST💫
hello bhaiya , terminal per status , message , extraDetails dikh rha but postman per nhi dikh rha , aur postman aur terminal pe error aa rha ki (ReferenceError: error is not defined) aurat Layer.handle_error . Please iska solution bta dijiye
chatgpt
Please Add forget password functionality also🙏🙏🙏
i have done all your challange
Done challenge ❤
❤
🙏🙏❤❤
Internal Server Error