 What's up team it's your biggest fan the real Casadero and in today's video I'm going to teach you to program and by the end of this video You will have written a useful program that you can use to help you in your day-to-day life And it may even possibly help you get So let's open up a power shell in every Windows machine That was built. Well, I don't even know about every Every If you're on a computer that does not have power if it's a Windows computer And it does not have power show on it then it's something is wrong your life is probably in shambles You you you probably hate your job and your wife and your kids and everything like because I don't know where you're working where the company is using a Version of Windows that doesn't have power show on it. So anyway We've got power show the next thing we're gonna do is we are going to open up We're gonna hit the windows key and we're gonna open up note. Well, do we need yet? We're gonna open up note pad Because one of the flaws of windows and not many people know this is it does not come with the text editor built Into the command prompt you have to go to the internet and download it at least in the at least in the current versions I mean, I don't know maybe back in the DOS days. I remember using some sort of text editor Maybe there is a text editor in power shell, but I can't I've never heard of it and I can't find it But I didn't I didn't look very hard either. So what we're gonna do is we're gonna type our code into notepad But first we want to make sure in the right directory. So Here I'm on the D drive But I know for a fact That notepad when I try to save this is gonna try to save it someplace crazy So we're gonna go control s and is gonna try to save it to my power shell profile folder We don't want that. So we're just gonna paste this directory right there And if we hit enter it was all it says it cannot be found. Hold on. We're gonna do this again We'll grab this control C go back to notepad control V and then instead of that symbol at the end, we're just gonna give this a name and the name is going to be new dash project Dot PS1 And so now we have our new project that PS1 and here's the deal every time I start a new project a new web development project I have to type a bunch of folders, right? So I have to go and I'll do a You know here actually we'll just type it in here So the first thing I do is I make all the folders that I need and we are gonna zoom in so you can see So the first thing I do is make all the folders folders I need and I so that's a command of MK di are and then I type all the folders name So I'll go CSS and Java script and then I'll make a documents folder for the documents I'll make an image folder for the images and that's it And then I'll go and I will type in new item and I will make a new dash item I will make make a index.html. I'll make a main Dot CSS but the main dot CSS has to go in the CSS folder So that goes here in the CSS folder and then I have to make a We might as well just copy this control C control V. I have to make a JS to hold the JS files and This is pretty much typically that the what what I do whenever I make a new project Now this isn't a lot of work But when you start to think about the fact that this isn't a lot of work And it can be done faster that means that you can do exponentially more work exponentially faster So when it comes to learning to code and learning to program and learning to write Applications and all this stuff right we have that we have to think a different kind of way right now We're programming one another to believe that a job is the route to go If we need a job to get money, which is cool But what happens is we get sucked into the job and we stick around for a very long time and most of us are not happy doing the jobs that we're doing and We aren't learning anything but most importantly right Computers are gonna take your job and There's there's there's there's no getting around that team right it's gonna happen at some point But you can be the person that programs a computer and you can be the person and Here's it gets even more powerful if you're the person that can program the computer You're the person that can do anything you can all you can automate Almost everything you do and it's only gonna get easier It's gonna get easier and easier easier team and you can be a part of that and this is where we're starting right with The simple script just thinking about this if we can make one directory on one computer We can make millions of directories on music computers right and it's all just us issuing commands. So what we're gonna do is We're gonna turn this into a program So we'll put a semicolon at the end that's gonna say hey, this is one command We'll put another semicolon here is gonna say hey This is another command completely separate command. These are both commands, right? So we're calling PowerShell and we're telling PowerShell to do this stuff And then we're calling PowerShell again, and we're telling PowerShell to do this stuff This is how every programming a language works All we are doing is telling a computer to do something in a series of steps. That's it Now we I want to create these folders inside of a different folder So they don't so I don't just have this directory full of folders So I'm gonna show you guys what I'm talking about. So we're gonna go control s to save We're gonna go back here to the construct and if we do a dir There is this new project dot ps1 right here, and if we do a git dash Content that's gonna show us what's in this new project file And it's the same stuff that we just type now if we type in new project and hit tab We can execute this file now. We can execute it because we're telling PowerShell Another command. We're just giving PowerShell. We're saying hey PowerShell, right and PowerShell is waiting for us to type something This is a program. It's reading what we're typing is that we say dot and then we put a dash and PowerShell knows right. He's he's saying in this folder Do something with this file In this file is project that ps1 when PowerShell sees that this is a ps1 file It starts to read what's inside the file and do what the file says That's programming. All right, so we're gonna hit enter and it's gonna try to make all this stuff But it can't because it ran into some sort of error somewhere could not find a part of the path the DCSS Main CSS so this and it tells me where that problem is it's on PowerShell one in line number two So if we go to our document over here, it's on Let's see PS1 line to alright, so our errors on line two and let's look at this. We're saying we want to make a new item Oh Index.html we want to make that and we want to make that and whatever directory that we're in already and then we want to make a Maybe we don't need this opening Bracket, so we'll save and We'll do a dir and oh we got all these extra files over here right now because everything created in this directory And we don't want to do that and we don't want to have to take this this Folder around everywhere we go. So what we'll do is we'll go back over here and we'll just say We'll make these in a new project directory and we'll just call that directory code so we'll do make a code dash CSS directory and we'll make a Code that will actually we'll copy this copy this right here control C and inside of that code directory. We're gonna make a Code.js and we'll do a All right, so everything's gonna go in the code folder. We'll put some spaces in here Just to make it read make it easy to read We'll do the same thing for this image is of course and then over here our index is gonna go just in the code folder But our CSS our our JS is gonna go in the JS folder. So it's gonna go in code Hold on control Z to undo that CSS digest this should be main digest main dot CSS This should be main digest right here main Dot JS and then all of this stuff. I see I messed this all up. This is but this is probably where our error was So we'll get rid of this All right, so what we're doing here, right? We call it. We're giving power shell a command Hey power shell we wanted new item power shell goes what what what the what's this new item gonna be we say? Hey, we want a code and we want Inside of the code folder. We want you to put an index.html. So we got a spell this right M L and Inside of this CSS directory. We want you to put a main dot CSS file and inside of this Well not inside of this CSS directory There we go There we go. This is gonna be yeah, it's gonna be CSS, but it's gonna be code CODE 4 slash CSS and then this one over here for the JavaScript is gonna be code slash JS slash Main.js all right, so Now we're saying hey make all this stuff, but make it in a different folder So we'll go back over here and we had this error They gave us a chance to look at something and figure some things out while we were in there We ran into some typos that we made and all kinds of stuff So we go back over here and what we got to do now is we got to clean up our old mess So we're gonna go start We'll go out here and this is gonna open just a regular Explorer window and we're gonna get rid of all the stuff That we don't that we don't need all right, so we don't need that we don't need this I'm just gonna control select these so I'm gonna zoom in so you guys could see we're gonna get rid of this JS folder we're gonna get rid of this image folder this hold on what directory are we yeah, we're in the construct okay, so we're gonna get rid of JS image doc CSS and index and That's it and we're gonna delete those delete and now those are all gone and now we're gonna go back here And we're gonna try our program again, so if we do a dir all that stuff is gone We'll clear in the NDR so you guys could see and now we're gonna run our new project again So we're gonna do a dot backslash new and then we could just hit tab or Power shell is smart when we do when we type new and we hit tab power shell Searches the directory is in for anything that starts with the in character And it finds this file and when we in that's the first thing it shows us But if there was something else in here with the in it would show us those two All right, so well not necessarily in this directory. There's commands that start with the in as well. So anyway, we're gonna go new dash project PRO hit tab and run it and now what has happened. Let's see so we've made Constructs so it made this folder in this directory. It made this ah We messed up the IR. We didn't restart power shell. So So basically we got to go restart power show to clear out all of the information the power show already has So we can start fresh but before we do that we're gonna have to Start dot and go get rid of all these files again now. We could do this in the command line We could just delete them ours. We could delete them ourselves But uh, but that requires a lot more Typing so we'll just come in here. We'll just do this CSS docs and code So we'll go late okay. No, we want to keep the code. We'll get rid of CSS docs images and JS and index So we'll get rid of those Delete and now we'll go back to power shell and we'll type exit And it doesn't matter when we exit power shells is just that's when I chose to exit it So no now what we're gonna do we're gonna make sure Everything looks good. So when we make a directory, we're gonna make a code Inside of the code directory and actually that directory that we want to make this stuff in well, you know, we'll leave it like this This is good So we're just we're saying make a CSS directory inside of the code directory make a JS inside of the and so on and so forth Make sure you got this right see it code. All right This isn't uh, yeah, this is correct. Okay All right, so we'll save And we'll go back and now we'll open power shell again, so we'll go power shell and Do a dir and let's run new projects. So we'll type any w tab and hit enter and it created the files It looks like it looks like it created them all in this There we go. Okay, so there's code All right, so when we do a dir We have a code directory and then we do a dir code. We can see what's in that directory now to make sure this worked We're going to do a Code we're going to do a dl code port slash Star and that's going to delete all the files in that code directory. We just hit a we'll do a dir Well dir in the code directory dir again dir In the code directory and so you see right so everything in the code directory is gone We'll clear this out and do another dir and if when we run this project If files end up in the code directory, we have a working program. So we're going to click to select this We're going to right click And then we're going to type well actually we'll just right click again Then we hit tab In order to make sure power shell knows. Hey, this is a file. It's a power shell one file inside of power shell We want to run it. We want to run these commands. So we'll hit enter And it does it does do dir. There's nothing in this there's nothing new in this directory dir code Now we have all of these files in this directory And we have just wrote A program this is a program that creates That creates files it creates the files we need Now the other aspects of programming are the writing two files The updating of files that's adding and removing information to and from them and then the deleting of files And we actually covered the deleting of files today But we can write functions and all kinds of programs to do all kinds of stuff like this all over the place Now we've created this basic scaffolding and we have this index.html so We can begin coding a web project now in the very next video that's coming down the pipe team I'm going to be showing you how to build a website from scratch From the ground up with nothing but html css in javascript You don't have to go out and learn a bunch of fancy stuff But you are going to be able to create a fantastic website and this is the website We're going to be creating in the very next video too. We are going to be making supreme new york dot com And on this site, they have a nice logo up here. They've got full page background image with the tint on it We've got links that light up when we scroll over them So do the social media links and they have a clock here in this clock Actually tells the real time if we do a control t and go over to get time and date dot com Uh Get Time and date Oh jays come on man. There it is time and date dot com. I should have started this website I've known about this website for like 20 years now, but anyway team The um as you can see right here. It says 755 p.m And we could go here and we could put in the city and we could put in new york And it tells us right there in new york. It is almost 11 p.m And if we go back to the website, it tells us it's almost 11 p.m So we're going to be incorporating this technology in that video as well team So that is it team. We have done it. We've we've done it. You did it. You've learned to code You have seen the the fundamentals of all programs And now if you want to learn more all you got to do is go out and seek more knowledge And the best way to do that. Well, one of the best ways to do that Is head over to the code 365 startup lab team Where you will find introductory courses in html css JavaScript Whatever it is you name it is there and you could also if you want to you could join the code 365 startup lab community And all that does is uh for 99 bucks you get lifetime access to all the courses that i'm making So right now in the free section you see there's a bunch of free courses here But if you go over into three into the startup lab, i'm working on one humongous one humongous course There's going to be html css and javascript is going to encompass a ton of stuff It's going to cover everything you need to know to build modern web applications And i'm talking have an idea design it out code it out put it on the internet and then Scale it out sell it do whatever it is you want to do team That is what i'm building into this course and as time goes on i'm going to be building other courses Is well for different projects like like the website project for instance So if you want to support the channel if you want more content sign up for the code 365 startup lab right now It is 99 bucks for lifetime access and i think i'm going to leave it at 99 bucks for lifetime access Uh probably until the end of the year team So take advantage grab that and if you if you want to just test it out for a while The $20 a month will get you there But you can also just take any one of the free courses and i'll have more Independent courses coming just like this team The one i'm really excited about right now is the one that is going to replace the web dev primer and that is going to be HTML genius And that's where we're going to dig deep and we're going to get Down into the nitty gritty of html and be able to really build some cool stuff That uh a lot of people just don't even know about because they don't go out and they don't read the documentation And they this stuff team. So that is it. It is me your biggest fan of the real castadero I look forward to seeing you next time team. I don't know you i never met you But i know you got greatness within you and i will see you in the next session