I had to rewind that magic trick about 10 times. It made my day, thank you :D
@movinmove
4 жыл бұрын
playspeed 0.25 :D
@developerspoint6059
4 жыл бұрын
Yeah it helps 😊
@manibharathy1994
4 жыл бұрын
I did the same, with 0.25 speed
@gihanrangana6248
4 жыл бұрын
use like that const schema = Joi.object({ name: Joi.string().min(6).required(), email: Joi.string().min(6).required().email(), password: Joi.string().min(6).required(), }); return schema.validate(req);
@robinnatter8884
4 жыл бұрын
@@gihanrangana6248 What do that
@ibosnfs1997
5 жыл бұрын
People still spending money for bad tutorials, while you can find the best one on KZitem. Great tutorial! 👌🏻
@iercan1234
5 жыл бұрын
True.
@thangtea18bec
5 жыл бұрын
I agree with you.. His voice is so clear and explanation is very short and what i need that. If i need a full explanation i will look up into documentation
@Vietnamcamping89
5 жыл бұрын
Yep, this true
@janklager7085
4 жыл бұрын
totally true
@blufrog9546
4 жыл бұрын
agree, u never get bored while following his videos
@depthsofmindshorts
4 жыл бұрын
"Life is wonderful when things work." - DevEd, 2019
@codingdaily4094
4 жыл бұрын
Literally, I will make it make my Whatsapp status and Insta bio
@srinadhj2638
3 жыл бұрын
wtf
@asgaraliyev8740
3 жыл бұрын
@@codingdaily4094 😂😂 I Love DevEd
@biswamohandwari780
3 жыл бұрын
Wise genius words
@giorgigazashvili2555
Жыл бұрын
i was also drinking water when he said that DDdd
@developedbyed
5 жыл бұрын
This one took a few energy drinks to make! Hope you guys enjoy it! I also left some timestamps in the description if you want to jump around or come back to the tutorial easily!
@sirlionellord
5 жыл бұрын
Thx Ed
@ridl27
5 жыл бұрын
very useful content bro! but can you share the code with us please ?
@AnhPham-pf4cj
5 жыл бұрын
appreciate super like
@zimbolazimboola27
5 жыл бұрын
very usefuly but can you do a tutorial for mysql for us please ??? thanks dear
@Wael100
5 жыл бұрын
Hi, Dev I would like to find a direct link for the code in the description if you don't mind :)
@MrVaffanci
4 жыл бұрын
if you got this error -> "TypeError: Joi.validate is not a function" at min 29:00 or so, fix this by writing "schema.validate(req.body);" instead of "Joi.validate(req.body, schema);"
@TehBaconStrip
4 жыл бұрын
and setup the schema as: const schema = Joi.object({...});
@oyoyoyoyoyoy9479
4 жыл бұрын
I need to look at comments first next time)))
@ericbourne3116
4 жыл бұрын
bro. BRO. i was stuck on that for fucking 3 HOURSSSS. FML. I had such a fucking headache. i was like whyyyy, WHYYYYYYY DOES THIS ONT WORK. you saved me, and my brain.
@AlifMunim
4 жыл бұрын
a true hero, thank you
@codefumble
4 жыл бұрын
you're a Godsend
@pratikwadekar4981
4 жыл бұрын
I already knew Angular and I was holding myself back from creating a MEAN Application. I wanted to get started by creating a basic application. I came across your Rest API tutorial and created one simple notes app using angular. Then I wanted to have authentication in my app so I saw this video and trust me you have kept it so simple as compared to other overrated tutorials out there.You are a life saver. Would've loved if you had a second part to this where you consume this API and create a front end for it.
@oscarekstrand3453
3 жыл бұрын
You are such a talented teacher. I'v been at University for 5 years and honestly, the "learnings/hour" in your content is making Uni look like a playground.
@jordanski5421
3 жыл бұрын
I quit college nevermind uni
@ManjunathManja1227
4 жыл бұрын
Things covered in this video: 00:00:57 Introduction 00:02:32 Setting up express 00:08:12 Connecting to a database 00:14:22 .env files 00:16:39 Creating models in mongoose 00:19:34 Registering a user 00:25:40 Validation with Joi 00:42:35 Hashing passwords 00:48:53 Setting up the login route 00:57:25 Adding jsonwebtokens to our auth 01:03:25 Creating private routes with jwt Copied from the description.
@biigsmokee
4 жыл бұрын
@DevEd, if you put 0:00:00 Start in the description you will get hotspots on the video
@bssushmitha6534
4 жыл бұрын
I must say, this is the best tutorial I have ever seen for explaining about JWT tokens. Honestly, by watching this video, I learned more than what they taught in the Bootcamp. I became a huge fan of you, DevEd. Your explanation is so so good. The jokes you make in between helps people a lot for not getting bored, and to concentrate more. The end is: I started loving your tutorials.
@justinp.1543
5 жыл бұрын
around minute 18:40 => is better to use a timestamps instead of putting a property date when you create a Schema, example: UserSchema = new mongoose.Schema({property:{ }}, {timestamps: true}). In this way it creates a createdAt and updateAt and it automatically updates it.
@fedus22
4 жыл бұрын
Something very good to know
@paritoshbatish9984
4 жыл бұрын
@@fedus22 I agree
@somebodyyouusedtoknow8600
4 жыл бұрын
thank you random programmer!
@tomascalvo8
3 жыл бұрын
good idea
@nikhilmine
3 жыл бұрын
Then we should probably change the name to 'Last updated date' instead of Date
@hidayetelitok9392
3 жыл бұрын
nearly all youtuber developer teachers teaching low or beginner levels developing but you are teaching like a expert an again thanks for your sharing I learned from you
@AaronJack
5 жыл бұрын
Hey Ed! Glad you're not completely burned out of development videos 😄thanks for inspiring people, you inspired me to start creating similar videos too!
@aris.konstantinidis
4 жыл бұрын
After two udemy courses, endless stackoverflow reads and about twenty youtube videos on jwt, I have to admit that I never saw such a clear (hands-on) explanation as this one --> 56:19. Thank you a ton Ed!
@zacharymeyer991
5 жыл бұрын
Joi changed their documentation and you'll need to create the schema as such- const schema = Joi.object({ // name, email etc.. }); and then you'll destructure the error as const {error} = schema.validate(req.body); hope this helps :)
@Saspian
5 жыл бұрын
thanks for help
@ultimathei
4 жыл бұрын
thanks Zach!
@ujjwalbiswas8400
4 жыл бұрын
Thank you for saving me from nightmare
@deepakseervi9496
4 жыл бұрын
You saved my day dude.
@souviknath7796
4 жыл бұрын
Thanks bro😄
@christossotirlis2247
4 жыл бұрын
The thing with all these guides in here, is that people never explain how to use different packages and libraries together. You are the one who explains them and also combine them in a way other people will use them in real life. I am kinda new in Js and most things don't actually fit together just by doing random research. Thank you. I really hope you do a tutorial with mysql DB for people like myself who are new in this and mysql is the first step in dbs
@Sonuyadav-ie5fb
3 жыл бұрын
whenever I watch his videos he always put smile on my face. He is one of the best teacher for programming available on youtube!
@JohnDoe-dz5wu
5 жыл бұрын
Idk how randomly i found your channel but I'm glad i did... :)
@Ayoub_Himself
3 жыл бұрын
For anyone struggling with the string length validation, you should use minLength / maxLength for strings rather than min / max which is for numbers
@shinan1329
2 жыл бұрын
TYSM, so helpful
@joooosh9432
5 жыл бұрын
Literally one of my fav Tubers at the moment. Can't wait to see your success 😏
@jonathannadeau8679
3 жыл бұрын
What I love about your videos is that you always start over from scratch. I think learning is repetitions so it helps me to remember informations better than the last time I watch one of your video! Thanks!
@frankli2425
5 жыл бұрын
This channel is criminally under subbed. Keep up the good work, love your content!
@shikhatripathi6731
2 жыл бұрын
Best wishes n good blessings from India Dev Ed . I saw your previous videos of nodejs , now I can say that , yeah I am familiar with node-js . The concept of middleware was not clear to me but u made it very easy to me . All I want say that .....U are a savior n a very rare human being who have outstanding teaching capabilities .
@everbliss7955
5 жыл бұрын
Hahahaha! That magic trick got me pumped up for the rest of the tutorial! Thanks, @Dev Ed. You are unique in an amazing way.
@zainabshah4207
3 жыл бұрын
trueee
@starX7995
10 ай бұрын
bro this is the most cleanest jwt video ive seen even after 4 years bro , thank u sooooooooooooooooooooooooooooooo much dude
@georgekotsiopoulos6241
4 жыл бұрын
Hey, very useful video! A quick notice, min and max properties on the mongoose Schema should instead be minlength and maxlength respectively. The reason is that min and max refer to the exact values, number or date. Like if we have { min: 2 } an input of 3 will not be allowed. Instead we care about the length of the input and not the value. Hope that helps. Correct me if I am wrong.
@pemifo260
2 жыл бұрын
Thanks for the information!
@secioreanuionelstefanita8687
3 жыл бұрын
When I saw that Borsec bottle I knew this was gonna be the best tutorial I could find on the web , thank you so much ! :))
@shubhamingale110
4 жыл бұрын
Hello, For new version of Joi, "Joi.validate(req.body, schema); " throws error. The solution is: "const schema = Joi.object({ name: Joi.string().min(6). required (), email: Joi.string().min(6). required (), password: Joi.string().min(6). required () });" Then in post route: " const validation= schema.validate(req.body); res.send(validation); " this will solve the error...
@elihergiorgana3559
4 жыл бұрын
thank you :)
@syedhuzaifaali5322
4 жыл бұрын
helped a lot thank you :)
@ujjwalbiswas8400
4 жыл бұрын
Hey buddy, can you help me with this? "message": "\"name\" failed custom validation because Cannot read property 'presence' of undefined",
@vic-pm3rm
4 жыл бұрын
thank you, buddy, I just posted a comment that I had this problem but then I found your comment. When I tried it, it was working. I really thank you.
@vic-pm3rm
4 жыл бұрын
and what about at 36:43? im just not an expert at node.js
@gabrielartiola3721
4 жыл бұрын
It's my first time using node.js, mongodb and everything discussed on this video and i find it very easy, and it's because of you! Great tutorial, thank you! :D
@algife
2 жыл бұрын
Super complete tutorial that I will be recommending to my peers starting their dev careers! As feedback, would be great if you split the video chapters directly (I saw there is a an index of content by the minute in the description though. Informative and concise tut Ed!
@jesusredondo513
4 жыл бұрын
I wish all tuts over Internet were this deep and condensed. This was pure gold. Thanks
@anuraghazra4772
5 жыл бұрын
Hey dE.... Please extend on this topic and make one more video about implementing the frontEnd for this Auth API. Please😫🙏🙏💓
@deepneon
5 жыл бұрын
Yes..it would be great if you teach us how to design the front-end for this.
@jormanfernandez8052
5 жыл бұрын
It would be awesome tho
@BodrumDrone
4 жыл бұрын
yeps we need how can i use nuxtjs SSR
@michrisoft
4 жыл бұрын
TraversyMedia has one using JWT as well.
@ShikharSharma1398
4 жыл бұрын
Good job on github-readme-stats :)
@muktaryusuf6699
3 жыл бұрын
I've watched a lot of tutorials that ended up confusing me more on NodeJS. But this right here, i the best i have come across. Seeing how you even explained what each operation does. You just init my backend career lol. Thank you
@jakubkoj1
5 жыл бұрын
Next part maybe create a front-end to this?
@Manel15basquet
5 жыл бұрын
Good Idea
@aryagoswami4152
4 жыл бұрын
YESSSSS.
@sunnyparmar9692
4 жыл бұрын
hell yeah
@gobinathshanthakumar1169
4 жыл бұрын
@@sunnyparmar9692 yes please we need the front end to this maby with user / admin section
@dormj2
4 жыл бұрын
Absolutely necessary, please do it Ed!
@chadiusmaximus9350
3 жыл бұрын
great video. node and express is so much easier than any other language I've tried to learn back end on including python. thank you.
@javierramirez798
4 жыл бұрын
I just wanted to say...Thank you so much! I finally understand how tokens are sent to the headers and are used. I've watched countless videos and read blogs, articles, and docs, none of them explained that particular part very well! Keep it up, dude!
@liorocker1
5 жыл бұрын
Oh man, you don't know how much i've been waiting for this, such an amazing video with lots of fun code, BIG THANKS :)
@MagnusPicard
3 жыл бұрын
video 1:15 hours - my view time 4 hours - my script is running- Thank you so much doing the tutorial
@GGdevelopment
4 жыл бұрын
Can you do a second part to this? Like how to add the front end part? (like a login page, sign in, etc)...
@gobinathshanthakumar1169
4 жыл бұрын
yes please
@daniilthegunner843
3 жыл бұрын
Hey, did you find anywhere tutorial with front part?
@dhruvjain9029
3 жыл бұрын
Guys check out his frontend course you might find something there
@PetBuddies
2 жыл бұрын
Complete!!! God!!! you are a lifesaver dude!!! 4 years old video yet a super helpful and reliable channel for beginners like me!!! Liked, Shared, Subscribed and also presses the bell icon!!!
@skilled-person
5 жыл бұрын
As of npm 5.0.0, installed modules are added as a dependency by default, so the --save option is no longer needed
@developedbyed
5 жыл бұрын
Correct!
@skilled-person
5 жыл бұрын
@@developedbyed thanks for the tutorial you covered pretty much everything related to node :)
@batoulalsayyed1484
2 жыл бұрын
Thank you so much, I have an assignment due to tomorrow and couldn't understand how to do it, it is clear now !
@SelfDevTV
5 жыл бұрын
This video is a godsend. Exactly what I was looking for. Keep it up man :)
@tambolaking5383
4 жыл бұрын
This tut is beautiful. It chronologically tells me what all needs to be taken care of during setting up auth. I always used to get confused with the chronology.
@sharonsegal1255
4 жыл бұрын
I smashed the like button so hard I cracked my screen - Thank you so much!
@HiImKyle
4 жыл бұрын
I'm half way through this and all I can say is this is the better of the lot in terms of clear explanations and just overall goodness
@inamandev4389
5 жыл бұрын
It would be a great FAVOR if you can do another VIDEO which help with UNIT TEST like how we can integrate UNIT testing using JEST for this login app OR any node app
@drlucky5474
4 жыл бұрын
Wow.... what can I say? Spending more than an hour and get the nice things I am looking for. Thanks and thank you very much. Simple but covers all. Great effort my bro....
@sina-qh8wm
4 жыл бұрын
The best auth tutorial ever...
@quietcalm7299
3 жыл бұрын
amazing video - the only update needed that I can see is Joi changed their syntax so now you need to write it the following way: const schema = Joi.object({ email: Joi.string().min(6).required().email(), password: Joi.string().min(6).required(), }); return schema.validate(data);
@LeaDClan
5 жыл бұрын
Such good video topics for beginners. Going to watch this one now.
@markkaranja11
3 жыл бұрын
I always like your videos because of how you kick them off, I'm usually serious when looking for such content and i highly appreciate you making me laugh!
@tobyboulton8340
3 жыл бұрын
Hello everyone. Due to the age of the video there is some changes with Joi which you will come to with the error Joi.validate is not a function" at min 29:00. First of all Hapi Joi is deprecated so you will want to npm install 'joi' instead. Also with creating the schema it will look like this: const schema = Joi.object({ .. as per video ..}); . Then validate the schema via const {error} = schema.validate(req.body);
@ventifan1018
3 жыл бұрын
const router = require('express').Router(); const User = require('../model/User'); //Validation const Joi = require('@hapi/joi'); const schema = joi.object({ name: Joi.string().min(6).required(), email: Joi.string().min(6).required().email(), password: Joi.string().min(6).required() }); router.post('/register', async (req,res) => { //Lets validate the data before we are user const {error} = schema.validate(req.body); res.send(error.details[0].message); // const user = new User({ // name: req.body.name, // email: req.body.email, // password: req.body.password // }); // try{ // const savedUser = await user.save(); // res.send(savedUser); // }catch(err){ // res.status(400).send(err); // } });
@RicardoDanyalgilJunior
3 жыл бұрын
@@ventifan1018 You must needed to chage joi to Joi, with caps const schema = joi.object({ name: Joi.string().min(6).required(), email: Joi.string().min(6).required().email(), password: Joi.string().min(6).required() });
@junior2441
2 жыл бұрын
@@RicardoDanyalgilJunior Thanks man!!
@cristiancr7954
2 жыл бұрын
The best tutorial on internet, really simple and well explained!!!
@BlackBastard815
5 жыл бұрын
Hi Dev i've a problem.. when i send the /register request from postman, the server stops at "await user.save()" (without any response).. (i think is a mongodb user problem... but i created also another account with reading and writing privileges..)
@elisarenda9003
5 жыл бұрын
Same... if someone could help us :)
@aamirjamal6833
4 жыл бұрын
Did you solve the issue?
@ujjwaljain9780
3 жыл бұрын
life is wonderful when things work.......Thanks for covering each topic so nicely
@mucahitaslancan3282
3 жыл бұрын
New version of Joi there is not Joi.validate() . You should use schema.validate(req.body) 28:46
@AbdulMoizAsif
3 жыл бұрын
best tutorial ever. Highly recommended to watch to clarify your concepts. Thanks Dev Ed
@kevinskeldon1451
5 жыл бұрын
Great tutorial but having an issue saving to the database. Everything else works as expected, my db connection, user model is correct when logged to console, but if I add async and await it hangs then gives an error in postman. Do I need to manually create a collection in Atlas before? Any ideas, been trying to fix this for hours and getting fed up as followed this video word for word in my code :( try { const savedUser = await user.save(); res.send(savedUser); } catch (err) { res.status(400).send(err); }
@aaronbrill616
5 жыл бұрын
Make sure your connection string has the correct username and password
@JohnGreen-qc5xb
5 жыл бұрын
hi did u manage to figure this out, i am facing the same problem
@Sakonii_
4 жыл бұрын
Try dropping the entire table from mongo and run again shell as: >> mongo db.dropDatabase(); exit
@potatoondaflo
4 жыл бұрын
im facing the same problem :( please help :(
@thatrafi5691
4 жыл бұрын
me too help
@Isthiyaquekambathagothi
2 жыл бұрын
Wow!! you explain things so seamlessly, feel great to learn things, so I hit that subscribe button, guess i will learn lot more on nodejs from this channel, love it
@calvinbarajas5144
3 жыл бұрын
if you end up sending the name, email, password from an actual HTML form (browser), you will need: app.use(express.urlencoded({ extended: true })) in the index.js file.
@ign_alpha
3 жыл бұрын
Can you show you you did this? I am trying to do this same thing but I have no idea how to implement my html file. gitrepo or contact me please g.jonathan252@gmail.com
@qianbang_
4 жыл бұрын
This is all you need to learn rest API as a whole. Thanks for the video
@ankitsanghi
5 жыл бұрын
This is easily the best video covering JWT I've ever seen. Super easy to follow and understand
@adiletdaniyarov5737
4 жыл бұрын
1:12:53 --> how to automate this action of adding that "auth-key" onto the header? Like if it is a real web app, how should a request be handled?
@josielsantos8283
3 жыл бұрын
U can intercept the request and add it
@danielmarx1056
3 жыл бұрын
Another awesome vid. Did the rest API yesterday, and this was a great follow up. Good job!
@ashutoshgupta450
4 жыл бұрын
"Life is wonderful when things work."
@daboos8
4 жыл бұрын
Great tut, he really has a way to breaking down things! I like that he focuses on the 'matter' on hand, and what doesn't and can waste time (like waste time making actual forms, he has other tuts for that that) and most importantly, like his other tuts, he puts all those concepts / libraries / tools into perspective allowing you to understand how they all relate.
@murillomfs
5 жыл бұрын
Really Nice work man! It helped me a lot to understand auth with json. Thanks. What about a frontend for this login, and if the user is valid, we redirect him to a page with the transition (using jsx, styled components, etc) from the last video.
@tannerbarcelos6880
4 жыл бұрын
You did an amazing job. I get this a lot better now! One thing I wished was that you’d explain more about what a middleware was more in depth. But, I’m in a web dev elective in my CS program right now so I kinda already knew! Needless to say, you did a killer job. You moved faster than a super slow beginning tutorial but not too fast that no one would understand. Thank you !
@mhdyousuf3392
5 жыл бұрын
Please do MERN Stack. Thanks for the Content.. Helps a lot.
@sharjeel_mazhar
3 жыл бұрын
If you don't know anything about RESTful APIs and you don't wanna waste precious time of yours then do not skip even a second of this video and you'll be just like me(who knew nothing how to code RESTful APIs) who can code RESTful APIs damn easily now💯💕 Your time and efforts are much appreciated Ed!
@vnrbhat
5 жыл бұрын
Joi has changed the way of defining schema and calling functions. Checkout the documentation for further details.
@ricksondmanix3760
5 жыл бұрын
I would appreciate if you can let us know how is it done for the newer version with an example please?
@joaoolival4511
4 жыл бұрын
@@ricksondmanix3760 const schema = Joi.object({ name: Joi.string() .min(6) .required(), email: Joi.string() .min(6) .required() .email(), password: Joi.string() .min(6) .required() }); router.post('/register', async (req, res) => { //VALIDATE DATA const validation = schema.validate(req.body); res.send(validation); }); Its like this, just copy and paste - More info check hapi.dev/family/joi/?v=16.1.7
@ThiagoAdomaitis
3 жыл бұрын
I love how Ed is funny withouth pushing it. He just is.
@johnconnor9787
3 жыл бұрын
The new version of Joi requires validation to be written like this: const schema = Joi.object({ name: Joi.string() .min(6) .required(), email: Joi.string() .min(6) .required() .email(), password: Joi.string() .min(6) .required() }); const validation = schema.validate(req.body); res.send(validation.error.details[0].message);
@keduslejiyared8701
3 жыл бұрын
Yes this worked for me
@ShikaNiots
3 жыл бұрын
im not being able to make it work when the validation is in another file, i can avoid any error returning schema.validate(data) instead of Joi.validate(data, schema), but its not actually apllying the validation. Any tip?
@johnconnor9787
3 жыл бұрын
@@ShikaNiots maybe some issues with import/export statements of that file
@JaredAkers
3 жыл бұрын
@@ShikaNiots i was facing the same issue, got it to work with removing schema param from the return in the validation.js file using the updated joi documentation. e.g. "return schema.validata(data);"
@deepakseervi9496
4 жыл бұрын
Seen a lot of tutorials, but none match your clarity of explanation. Keep up the good work:)
@bibhushankarki9194
5 жыл бұрын
Good stuffs everytime 😍 do MERN videos too 😆😆😆
@JohannyLS
5 жыл бұрын
I agree :D
@iHack-ms5nr
5 жыл бұрын
Absolutely fucking not.
@iHack-ms5nr
5 жыл бұрын
MEVN or MESN
@kattenelvis1778
5 жыл бұрын
@@iHack-ms5nr Why do you hate React?
@iHack-ms5nr
5 жыл бұрын
@@kattenelvis1778 Can't stand it. The startup company I'm working in wanted me to write their microservices in React. I said I'd quit if they forced me to write React, so they changed their mind. I know use the MEVN stack on all their microservices, and the other developers on the team love me for that xd
@pratiksaria5830
4 жыл бұрын
I love the way u make Videos it's really relaxing and at the same time provides me knowledge. I have to say that there are few people i meet in my life journey of 20 who teaches so beautifully like you.Thank you for all you have done for the community
@_robyn_
4 жыл бұрын
0:08 watching this during corona lockdown belike :3
@bakersentamu4725
Жыл бұрын
On 30:28, joi happened to update so it wont work as shown in the video instead use const schema = Joi.object({ name: Joi.string().min(6).required(), email: Joi.string().min(6).email().required(), password: Joi.string().min(5).required(), }); //and const validation = schema.validate(req.body); //in the router.post("/register") method
@prashantingwl
3 жыл бұрын
I love you bro , started learning nodejs , after your rest api tut , binging on ur tuts .
@4541047
5 жыл бұрын
Thanks man :) Can you please publish the finalized code?
@aimanshamjafri9028
3 жыл бұрын
First of all, I love your energy. Make me more excited to learn. I plan of mastering node.js (express) to become a back end dev and secure a proper job. Wish me luck. Thank you so much.
@prosperarineitwe9147
4 жыл бұрын
Hey Dev Ed great tutorial. I would like some help implementing a logout function with the JWT
@8kelvin
3 жыл бұрын
JWT is stateless, it seems cannot be logout from server side, @Dev Ed, could you please confirm..
@rajat4002
3 жыл бұрын
Finally this video came as a savior for me. Thanks Dev Ed 💖 Also, if someone is watching in 2021, schema.validate() is the new function instead of Joi.validate() here is the code you might stuck at-> //Register validation const registerValidation = (data) => { const schema = Joi.object({ name: Joi.string().min(6).required(), email: Joi.string().min(6).required().email(), password: Joi.string().min(6).required(), }); return schema.validate(data); };
@NhanNguyen-yf9cv
5 жыл бұрын
why not making a full project based course? I'm sure to be the 1st one who buy it ~~
@developedbyed
5 жыл бұрын
I will, it just takes a loong loong time to make and edit 😀
@perc-ai
5 жыл бұрын
@@developedbyed i will buy it
@NhanNguyen-yf9cv
5 жыл бұрын
@@developedbyed Would be very grateful if u could make something related to e-commerce/shopping cart from scratch (both the client and server) which is very in demand now. Other tutorials nowadays just suck as they give us many basic things and less real scenarios. They don't visualize the way to dive into these patterns as u do.
@frixaco
4 жыл бұрын
Finally I understood how to work with JWT! Thank you so much for this awesome tutorial!!
@magichome7867
3 жыл бұрын
I don't know whether someone already posted this. The library "@happi/joi" is now deprecated. You should use a newer version by the same author called "joi". It works quite similar, but when you create your validation schema you need to use joi.object(). Afterwards you can validate it with .validate().
@uttamsharma3511
3 жыл бұрын
I was trying to understand jwt from long time because was not getting best video . but finally I understood what is jwt Thank you a lot 😊
@mikealejandro3938
3 жыл бұрын
I know you have to heard this once in a while dev, i love you, i'm learning to get a job partly because of you !
@meujemeuje8721
4 жыл бұрын
@hapi/joi Chage so at 27:00 it's "const schema = Joi.object({//properties here})" and at 29:00 it's "const validation = schema.validate(req.body);"
@pjguitar15
3 жыл бұрын
I really like how you give us knowledge and good laugh at the same time
@brycepieroway4040
4 жыл бұрын
VERY WELL presented! You presented jwt's and mongo access, api routes, etc. in a very easy to follow manner. Now, I need to go back and implement this in a project as I watch and follow along again so that it sinks in to my squishy brain. :)
@Mo_sch2001
3 жыл бұрын
Best teacher ever (Simple,funny, efficient)
@lucabaxter4002
5 жыл бұрын
I know how to build an authentication system with jwt, but this is one of the best explanations i ever seen mate!
@MrGigi-dz9cv
3 жыл бұрын
Teo years later, it is the end of July now. And, i am just sitting home watching coding videos.
@Anstroy95
4 жыл бұрын
Dude I saw like 3 JWT tutorials before this one, but my face was like WTF! then I came here and I now have a very good understanding of it!!! thanks a lot!!!!
@valeedification
4 жыл бұрын
Thanks to you, I can now easily work as a MERN stack developer. Dev Ed you are a champ
@muhammedadel9673
4 жыл бұрын
First, let me start by saying i appreciate the energy and effort into making these tutorials and sharing them for free that should never be taking for granted so thank you yet i was expecting it to be JWT focused since that's mainly in the title but you only start using it around 58:00 i do understand this topic involves a lot of boilerplate to demonstrate
@dongus12
2 жыл бұрын
For those running in to a Joi.validate issue ~28:00, Joi.validate is no longer a function and instead you turn the schema object in to a const schema = Joi.object({username: blahblah...}) and then run schema.validate(req.body) instead of Joi.validate(req.body, schema)
@pysof
3 жыл бұрын
This is the best coding channel on KZitem.
@robertdowney336
5 жыл бұрын
Your tutorials are awesome and really easy to understood as a beginner. Greetings from France !
Пікірлер: 1,6 М.