Thanks! Yeah I wanted to do something different today :)
7 ปีที่แล้ว +4
I seriously think you're somehow reading my mind. Not only do you come up with a video tutorial for Django (when I just started studying it); but now it's creating a CLI? Wow... O_O
When we were building apps in .net, cli apps were huge time and resources saver, and often, they used to outlive the various GUI app versions. Though it was for in-house dev team, for our SaaS app, even the advanced user customers used to love it. Migrating to Node.js world, and can not thank enough for this useful video.
Hello, I am very grateful for your guide, but I have an error (24:41), instead of Adding Customer: customer-cli/node_modules/mongodb/lib/connection_string.js:286 throw new error_1.MongoParseError(`${optionWord} ${Array.from(unsupportedOptions).join(', ')} ${isOrAre} not supported`); I suppose that part of your code is deprecated. Please, help me to find a solution. Thank you
@@raulsanchez8460 I said the right thing. I had watched all the videos of Node.js and Not in single one He had explained anything,All the time I had to see the documentation to understand that thing
i hope one day you will make series about making a javascript library/framework. Btw thank you for awesome videos take care ! (sorry about my English :))
Making a framework is too nebulous a concept, since frameworks come in all shapes and sizes that do lots of different things for different reasons. If you know JavaScript and have an idea for some resource that makes doing certain things easier, then you can create a framework. The tricky part is how to package your code so it's usable, testable, and then to deploy it to a package management service. So I don't think "How to make a framework" is a good idea for a series, but "How to package you project" or something like that detailing testing and distribution on something like NPM would be a good topic/series.
Around 20:00 when I used program.parse(process.argv) and tried to run it, I got a million warnings and errors and deprecation warnings. Is this somehow that outdated already, or is it me?:)
Thanks for the fix.. Also getting depreciation warnings on useMongoClient: Use the following instead of above useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true
love this tutorial! Is there a reason data persists after exiting the CLI and exiting the mongo server? I want the data to clear out but it seems like it's cached
He know only how to copy paste the code .He don't know how to explain it and when He will explain also u can't understand also I am not believing till now how can he get so many subscribers only by doing copy paste the code
Brad, can you do something like DigitalOcean Crash Course going deeper into various droplet setup options and paid features such as Backups and stuff like that? And I also hope one day you will do Deploy Something to CloudFlare. Thank you in advance :)
hey brad, everything works great. then i tried using dotenv to store my db uri and i keep getting and undefined error. i've required dotenv at the top of index.js, i've tried storing the uri in my .env file with and without quotes, i've tried passing it into the mongoose connect method as process.env.VARIABLE_NAME and tried storing that in an variable called uri and then passing uri in, and still no luck. any chance you or someone reading this can help? thanks!
It's fine, just like Flow, it just requires a bit of setup, but there's nothing wrong with it, though if you only using it for the type checking just use flow.
I know I already asked for this a while back, but would you consider doing a crash course on setting up a dev environment in Windows with WSL Bash? I should prob post this request on Patreon.
I have a whole mess of things on my list and that has been one of them for a while. I actually did one a long time ago but was not happy with it so I scrapped it. I have been meaning to re-do it. I do not use it in videos because I need to keep things as simple as possible and as compatible as possible for others. Plus I am content with Git Bash or if I want to use Linux, I have 5 vms with Ubuntu/Mint.
instead of db.close() the way he has it, try mongoose.disconnect() ..also, for a cleaner look, instead of const db = mongoose.connect(yourMongoUrlAndStuffHere) ...try setting db = mongoose; and then, use db.connect(yourMongoUrlAndStuffHere) and so you can then just use db.disconnect() instead of mongoose.disconnect() like i said at first ...but either way, the .close() method doesn't work..i think because .close() is a method of mongoose.connection ...so mongoose.connection.close() might work as well, but i haven't tried. hope this helps!
A few reasons. - Beginner friendly - I am a PC Enthusiast. I love building PCs (and using them) - Check out my 6 monitor setup tour. Cant do that with a mac - Did computer repair for a long time so I am a Windows guy - Recording software - No reason to. Windows 10 has gotten a lot better. Nothing I did in this video or any video is easier on another OS.
Normal TH-camr is better than Brad . Although they don't make good content but what they make it they understand that thing properly.Not like u Just copy paste the code and not understanding anything
You don't know how to teach only u r writing the code without explaining anything and that's why I am facing problem to understand and I have to see the documentation for those things
I just completed building this application , This is amazing .. Looking forward for more awesomeness :-)
Awesome!
brother i get UnhandledPromiseRejectionWarning : type error: db.close is not a function. pls help me how to solve it .
Hi, @ganeshmajhi1065
Building a CLI thats fuckin cool , thanks brad
Thanks! Yeah I wanted to do something different today :)
I seriously think you're somehow reading my mind. Not only do you come up with a video tutorial for Django (when I just started studying it); but now it's creating a CLI? Wow... O_O
Hi, @YahananRiviere
When we were building apps in .net, cli apps were huge time and resources saver, and often, they used to outlive the various GUI app versions. Though it was for in-house dev team, for our SaaS app, even the advanced user customers used to love it. Migrating to Node.js world, and can not thank enough for this useful video.
Hi, @ajitsingh4346
Totally loved this tutorial,will def be your patreon when i get a job.Thank you so much!
Hi, @Simbatronix
He knows while teaching that people are watching this video other youtubers teach themselves
Not even seen the video yet. opened youtube just to tankyou man!
Thanks so much, Brad. I really appreciate this. You have no idea how this has helped me
Hi, @gracefrank5692
i think it makes more sense to close the db on finally not then. Also cli seems to hang when it gets a command it doesn't know.
Check out the cli-notes app I created with the same technologies used in this video!!
github.com/yTakkar/cli-notes
Hey dude, thank you for show me your knowledge, today I learned good practices and I already could make a global cli tool ... Amazing!
Hi, @hnl22
Hello, I am very grateful for your guide, but I have an error (24:41), instead of Adding Customer:
customer-cli/node_modules/mongodb/lib/connection_string.js:286
throw new error_1.MongoParseError(`${optionWord} ${Array.from(unsupportedOptions).join(', ')} ${isOrAre} not supported`);
I suppose that part of your code is deprecated. Please, help me to find a solution. Thank you
Thanks so much Brad, this was really helpful.
Haven't watched yet, but I already know it's good! Thanks
Those who only do copy paste .For those it's good video because Brad is master in copy paste
Bihari Brothers lololol
@@raulsanchez8460 I said the right thing. I had watched all the videos of Node.js and Not in single one He had explained anything,All the time I had to see the documentation to understand that thing
i hope one day you will make series about making a javascript library/framework.
Btw thank you for awesome videos take care !
(sorry about my English :))
no issues with your english dude
Making a framework is too nebulous a concept, since frameworks come in all shapes and sizes that do lots of different things for different reasons.
If you know JavaScript and have an idea for some resource that makes doing certain things easier, then you can create a framework. The tricky part is how to package your code so it's usable, testable, and then to deploy it to a package management service.
So I don't think "How to make a framework" is a good idea for a series, but "How to package you project" or something like that detailing testing and distribution on something like NPM would be a good topic/series.
Aren't there any tutorial videos out there?
Great video. Maybe as an idea for a follow up would be to make the update read in the current values to be edited.
Hi, @JasonWierakaJDub
Hi Traversy,
You save my job, Thanks man.
Happy Coding..
brother i get UnhandledPromiseRejectionWarning : type error: db.close is not a function. pls help me how to solve it .
Around 20:00 when I used program.parse(process.argv) and tried to run it, I got a million warnings and errors and deprecation warnings. Is this somehow that outdated already, or is it me?:)
Thanks Brad, I love your stuff. When I see a new video, you make my day.
Hi, @argeelearner3978
Really Interesting tutorial Brad! Was wondering if you would be able to make a video on Live Video Streaming with WebRTC? Would be a cool project
for all who are struggling with db.close throwing error ,
use
mongoose.connection.close()
instead......
Thank you lol
Thanks for the fix..
Also getting depreciation warnings on useMongoClient:
Use the following instead of above
useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true
thank you bro
@@javieryzaguirre4257 you can use this inside Mongoose.connect with curly braces and copy these two code
You are awesome Brad!
Wow🤩 it works perfectly. Superb ✌🙌🏁
That's so useful! I already create my own CLI to generate a AngularJS module :>. Thx alot
Hi, @Bilal-le3nw
love this, thanks so much your tutorials are the best :)
I see you've uploaded the code to GitHub. Very convenient for us this way, Thank you :-)
love this tutorial! Is there a reason data persists after exiting the CLI and exiting the mongo server? I want the data to clear out but it seems like it's cached
Thanku for sharing Brad, useful tutorial
Hey Brad if you could explain arrow functions that would be great with explanation of examples.
He know only how to copy paste the code .He don't know how to explain it and when He will explain also u can't understand also I am not believing till now how can he get so many subscribers only by doing copy paste the code
Hi Brad, Please help me find that this cli could be deployed without the prerequisites of node in windows machines just like electron?
Thank you, Brad!!
Wow...You’re rule Brad!!!
Thank you, great explanation!
My find function is not working when I type node commands.js find (anyname) then it gives all the customers which was present in my database
Bless up Brad.
this is very useful on system building right?
Brad please make video on Bot Application using node js
I get an error saying Operation customer.insertOne() buffering times out after 10000ms. Also I think this code is deprecated.
what if you want it with login and the program don't close and wait for others commands after login
great video man
excellent video
Thanks Brad!
Brad, can you do something like DigitalOcean Crash Course going deeper into various droplet setup options and paid features such as Backups and stuff like that? And I also hope one day you will do Deploy Something to CloudFlare. Thank you in advance :)
mr brad can i know how can i convert my cli into an application just like terminal in linux
Hello traversy, can u please reupload the PHP PDO login system, if possible..!!!
The link to download is on my Twitter feed
Thank you...!!
Now, how to distribute that CLI with MongoDB as an npm package?
Hey brad, how do i connect this to this terminal to your node js masterclass api course, Can you please help
kindly ignore, ive resolved it
Brad is God for me
i;d like to know the real day utility of this i mean CLI for customer kind stuff.
CLI may seem intimidating at first but its quite convenient than complex UIs
hey brad, everything works great. then i tried using dotenv to store my db uri and i keep getting and undefined error. i've required dotenv at the top of index.js, i've tried storing the uri in my .env file with and without quotes, i've tried passing it into the mongoose connect method as process.env.VARIABLE_NAME and tried storing that in an variable called uri and then passing uri in, and still no luck. any chance you or someone reading this can help? thanks!
Use :
require("dotenv").config() make sure to add .config()
Thanks brad :)
Thank you Brad
I wounder if it makes sense to use TypeScript for node.
It's fine, just like Flow, it just requires a bit of setup, but there's nothing wrong with it, though if you only using it for the type checking just use flow.
It does makes sense actually. You can find a starter i made here - github.com/pitops/nodetype-starter
I know I already asked for this a while back, but would you consider doing a crash course on setting up a dev environment in Windows with WSL Bash? I should prob post this request on Patreon.
I have a whole mess of things on my list and that has been one of them for a while. I actually did one a long time ago but was not happy with it so I scrapped it. I have been meaning to re-do it. I do not use it in videos because I need to keep things as simple as possible and as compatible as possible for others. Plus I am content with Git Bash or if I want to use Linux, I have 5 vms with Ubuntu/Mint.
Interesting video, pls do vidoe on webrtc
brother i get UnhandledPromiseRejectionWarning : type error: db.close is not a function. pls help me how to solve it .
instead of db.close() the way he has it, try mongoose.disconnect() ..also, for a cleaner look, instead of const db = mongoose.connect(yourMongoUrlAndStuffHere) ...try setting db = mongoose; and then, use db.connect(yourMongoUrlAndStuffHere) and so you can then just use db.disconnect() instead of mongoose.disconnect() like i said at first ...but either way, the .close() method doesn't work..i think because .close() is a method of mongoose.connection ...so mongoose.connection.close() might work as well, but i haven't tried. hope this helps!
@@ahmedjahmi5704 Thanks, man !! it helped a lot
@@tanayraj2991 no problem, happy I could help :)
Name of the application or interface u mean what ?
How do I make the type of a field in the schema an Array? just { type: Array }??
I hope someone can help me out!
Anyways, Great tutorial!!
Brad its not working in Linux Environment!!!Please help
How to do this without mongoose?
Thank you.
what do we want premium my baby .
no we want that you put more video like this :-)))))
Many thanks!!!!
Amazing!
Fucking Legend M8 honestly
Why do you use windows PC? Why not Linux or Mac?
A few reasons.
- Beginner friendly
- I am a PC Enthusiast. I love building PCs (and using them)
- Check out my 6 monitor setup tour. Cant do that with a mac
- Did computer repair for a long time so I am a Windows guy
- Recording software
- No reason to. Windows 10 has gotten a lot better. Nothing I did in this video or any video is easier on another OS.
@@TraversyMedia now you had switched to mac os .................
Awesome!!
thank you
Plz upload php pdo crash course
Already have one, search the channel. I made it around a month ago
@Traversy Media thanx
Awesome
Normal TH-camr is better than Brad . Although they don't make good content but what they make it they understand that thing properly.Not like u Just copy paste the code and not understanding anything
im third?? crap. oh well let us learn :)
First heheh
I'm 245th
You don't know how to teach only u r writing the code without explaining anything and that's why I am facing problem to understand and I have to see the documentation for those things
Second
wtf are you doing here kid?