Hello, in this jQuery video, I am going to show you how to set up your jQuery project on Windows. So we've already got these two files already created, trust me, they are simple for them. Sure you got something more complex than this one before. And it's a index file, which has a doctype, HTML tag head and by tag body tags, empty head tag, all it does is it links to the JavaScript file which is this, which is empty, just D use strict little command. And apart from that, that is it. And we are going to set up jQuery on here.
So what you want to do is open up your web browser, go to jQuery Comm. I'll provide links to everything that you will need to download. From here, you have a few different options for setting up jQuery, you can either download the file manually, and if you do that, you can set it up like you've done here in your local directory. If you want that route, the other option is to set up using a package manager such as NPM, or yarn. And the final option is using a CDN, which is a content delivery network, which essentially hosts the code on some server Well, some servers around the world more specifically, depending on when you try and accessing where you are in the world, which depends on the server that can get you that far the fastest. That's the one that will you know, deliver that file.
And CDs are fantastic. So if you just go to coda jquery.com, some other CDN if you use maybe you Google one, but I just recommend the default one, which is powered by step path. And then from here, you can choose the different version in terms of like free to etc. And you can choose whether you want uncompressed, minified, slim or slim minified. I'm going to cover that in a separate video, so feel free to take a look at them. I'm gonna choose compress.
From here, you'll get some setup code. So let's copy that. Go to your text editor, I'm using sublime, there's make sure you have obviously a browser of your choice and some text enter as well. And you want to place this code just before the rest of the code. And that's because the rest of the code will need to use jQuery. So you need to play through in a linear fashion.
So if I save that, that's it. That's the setup or done. So we have the source file, and integrity Sha 256 hash, which just confirm that this file is verified using this hash and therefore, you know, nothing dodgy and we have a cross origin anonymous. This just allows us to use a file that's not on our server. So if you want to set up locally, yourself something like this, maybe you replace it with the phoning and dies. So if we go to indexation now, reload, go to inspect and then As you can see is right here.
We go to sources and scroll down, go to code, the jQuery the content is loaded the JavaScript file from code, amin from jQuery successfully. And that's it. That's how you set up jQuery on a Windows machine. If you have any questions, feel free to pop me a message. And I look forward to seeing you in the next jQuery video.