title
Node.js Crash Course Tutorial #1 - Introduction & Setup
description
Hey gang, welcome to the first Node js tutorial from this crash course. To download Node.js go to https://nodejs.org/en/download/ and select either the windows or mac version.
0:00 -- Welcome / what is Node.js?
5:19 -- What you'll learn
9:33 -- Installing Node.js
13:31 -- Running files through Node.js
🐱👤🐱👤 JOIN THE GANG -
https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg/join
----------------------------------------
🐱💻 🐱💻 My Udemy Courses:
+ Modern JavaScript - https://www.thenetninja.co.uk/udemy/modern-javascript
+ Vue JS & Firebase - http://www.thenetninja.co.uk/udemy/vue-and-firebase
+ D3.js & Firebase - https://www.thenetninja.co.uk/udemy/d3-and-firebase
🐱💻 🐱💻 Course Files:
https://github.com/iamshaunjp/node-crash-course
🐱💻 🐱💻 Other Related Free Courses:
+ Modern JavaScript Tutorial - https://www.youtube.com/playlist?list=PL4cUxeGkcC9haFPT7J25Q9GRB_ZkFrQAc
+ HTML & CSS Crash Course - https://www.youtube.com/playlist?list=PL4cUxeGkcC9ivBf_eKCPIAYXWzLlPAm6G
🐱💻 🐱💻 Node.js links
+ Download here - https://nodejs.org/en/download/
detail
{'title': 'Node.js Crash Course Tutorial #1 - Introduction & Setup', 'heatmap': [{'end': 825.021, 'start': 790.691, 'weight': 0.959}], 'summary': 'This tutorial provides an introduction to node.js, its role in running javascript on the server side, and offers an updated playlist for beginners. additionally, it explores computer code, node.js execution of javascript, v8 engine, server-side tasks, installation process, and project setup.', 'chapters': [{'end': 72.395, 'segs': [{'end': 72.395, 'src': 'embed', 'start': 0.35, 'weight': 0, 'content': [{'end': 3.923, 'text': 'Hey, gang, and welcome to your very first step in becoming a node, ninja.', 'start': 0.35, 'duration': 3.573}, {'end': 14.367, 'text': 'all right, then, gang, now i do already have a node tutorial on this channel,', 'start': 9.844, 'duration': 4.523}, {'end': 19.29, 'text': "but i wanted to update it because now that's about four or five years old.", 'start': 14.367, 'duration': 4.923}, {'end': 27.816, 'text': "so i wanted to do a quick refresh, a nice new node tutorial, because in the future i'm going to create some more advanced node tutorials as well,", 'start': 19.29, 'duration': 8.526}, {'end': 33.96, 'text': 'and then i can direct people to this more recent playlist to learn the basics first of all.', 'start': 27.816, 'duration': 6.144}, {'end': 34.34, 'text': 'okay, then.', 'start': 33.96, 'duration': 0.38}, {'end': 37.042, 'text': 'so, first things first, what is node.js?', 'start': 34.34, 'duration': 2.702}, {'end': 45.029, 'text': "well, as developers, when we're creating websites, we normally talk about code on either the front end inside the browser,", 'start': 37.822, 'duration': 7.207}, {'end': 49.873, 'text': 'or back end code or server side code, which is the code which runs on a server.', 'start': 45.029, 'duration': 4.844}, {'end': 55.518, 'text': 'now javascript is normally confined to run in a browser in the past on the front end,', 'start': 49.873, 'duration': 5.645}, {'end': 60.022, 'text': "and we'd use it to do things like add interactivity to a web page, like click events or things like that.", 'start': 55.518, 'duration': 4.504}, {'end': 70.553, 'text': 'Now we never used to be able to run JavaScript directly on a computer or server, but Node allows us to run JavaScript on the server side as well,', 'start': 60.763, 'duration': 9.79}, {'end': 72.395, 'text': 'or even directly on computers.', 'start': 70.553, 'duration': 1.842}], 'summary': 'Node.js tutorial update for server-side javascript, preparing for advanced tutorials.', 'duration': 72.045, 'max_score': 0.35, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms350.jpg'}], 'start': 0.35, 'title': 'Introduction to node.js', 'summary': 'Introduces the concept of node.js, explaining its role in running javascript on the server side and updating a previous tutorial to provide a more recent playlist for beginners.', 'chapters': [{'end': 72.395, 'start': 0.35, 'title': 'Introduction to node.js', 'summary': 'Introduces the concept of node.js, explaining its role in running javascript on the server side and updating a previous tutorial to provide a more recent playlist for beginners.', 'duration': 72.045, 'highlights': ['Node.js allows running JavaScript on the server side or directly on computers, expanding its usage beyond the traditional browser environment.', 'The tutorial aims to provide a more recent playlist for beginners, updating an older tutorial that is about four or five years old.', 'Node.js enables directing people to learn the basics before delving into more advanced node tutorials in the future.']}], 'duration': 72.045, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms350.jpg', 'highlights': ['Node.js allows running JavaScript on the server side or directly on computers, expanding its usage beyond the traditional browser environment.', 'The tutorial aims to provide a more recent playlist for beginners, updating an older tutorial that is about four or five years old.', 'Node.js enables directing people to learn the basics before delving into more advanced node tutorials in the future.']}, {'end': 572.138, 'segs': [{'end': 124.912, 'src': 'embed', 'start': 96.698, 'weight': 2, 'content': [{'end': 99.241, 'text': 'which is then assembled down into machine code.', 'start': 96.698, 'duration': 2.543}, {'end': 101.804, 'text': 'so the computer can still understand it.', 'start': 99.861, 'duration': 1.943}, {'end': 107.431, 'text': 'but this right here, this assembly language, is still overly complex to read and write.', 'start': 101.804, 'duration': 5.627}, {'end': 110.875, 'text': 'so built on top of that, we have programming languages like c plus plus,', 'start': 107.431, 'duration': 3.444}, {'end': 117.003, 'text': "which are abstracted a lot away from assembly code and they're much easier to read and write.", 'start': 110.875, 'duration': 6.128}, {'end': 124.912, 'text': 'So ultimately, this C++ code is then compiled down to machine code.', 'start': 118.104, 'duration': 6.808}], 'summary': 'Assembly language is complex, c++ abstracts it, compiled to machine code.', 'duration': 28.214, 'max_score': 96.698, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms96698.jpg'}, {'end': 217.545, 'src': 'embed', 'start': 189.756, 'weight': 0, 'content': [{'end': 196.525, 'text': 'So Node.js is a program also written in C++, and that wraps the VA engine.', 'start': 189.756, 'duration': 6.769}, {'end': 201.531, 'text': "So this VA engine that's in browsers also lives inside Node as well.", 'start': 196.565, 'duration': 4.966}, {'end': 208.239, 'text': 'Now, because Node is written in C++, it can run directly on our computer.', 'start': 202.392, 'duration': 5.847}, {'end': 217.545, 'text': 'So, by installing and running Node on our computer, it can take our JavaScript, it can run it through the V8 compiler that it has inside it,', 'start': 208.9, 'duration': 8.645}], 'summary': 'Node.js, written in c++, can run javascript using v8 compiler.', 'duration': 27.789, 'max_score': 189.756, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms189756.jpg'}, {'end': 272.224, 'src': 'embed', 'start': 241.117, 'weight': 1, 'content': [{'end': 244.838, 'text': 'we can use all of this extra functionality in our JavaScript code.', 'start': 241.117, 'duration': 3.721}, {'end': 252.782, 'text': 'And that kind of functionality includes things like the ability to read and write files on a computer or to connect to a database,', 'start': 245.318, 'duration': 7.464}, {'end': 254.963, 'text': 'the ability to act as a server for content.', 'start': 252.782, 'duration': 2.181}, {'end': 263.653, 'text': "these are all the kind of things you'd expect a server-side language to do, and now we can do them with javascript running through node.", 'start': 255.603, 'duration': 8.05}, {'end': 272.224, 'text': 'now remember, javascript was originally made for the browser to add interactivity and not to run directly on computers or servers.', 'start': 263.653, 'duration': 8.571}], 'summary': 'Node.js allows javascript to perform server-side tasks like file handling, database connections, and server functionality.', 'duration': 31.107, 'max_score': 241.117, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms241117.jpg'}, {'end': 393.297, 'src': 'embed', 'start': 371.502, 'weight': 4, 'content': [{'end': 380.026, 'text': 'so using node in a website is pretty much an alternative now to other server-side languages like python, ruby php, etc.', 'start': 371.502, 'duration': 8.524}, {'end': 382.688, 'text': 'but there are benefits of using node over the others.', 'start': 380.026, 'duration': 2.662}, {'end': 389.334, 'text': "first of all, if you're already familiar with javascript, then there's absolutely no need to learn a new server-side language,", 'start': 383.348, 'duration': 5.986}, {'end': 393.297, 'text': 'because node is going to be taking javascript and compiling it down.', 'start': 389.334, 'duration': 3.963}], 'summary': 'Node is an alternative to other server-side languages, especially beneficial for those already familiar with javascript.', 'duration': 21.795, 'max_score': 371.502, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms371502.jpg'}], 'start': 73.036, 'title': 'Understanding computer code and node.js', 'summary': 'Delves into computer code, from machine code to abstract programming languages like c++, and also explores node.js, its execution of javascript, use of v8 engine, server-side tasks, and benefits compared to other server-side languages.', 'chapters': [{'end': 117.003, 'start': 73.036, 'title': 'Understanding computer code', 'summary': 'Discusses how computers understand code, starting from machine code and assembly language, and moving towards more abstract programming languages like c plus plus, which are easier to read and write.', 'duration': 43.967, 'highlights': ['Programming languages like c plus plus are abstracted a lot away from assembly code and are much easier to read and write.', 'Assembly language is built on top of machine code and is a bit easier to read and write, then assembled down into machine code.', 'Computers really only understand machine code, which is complex to write and read, and assembly language is still overly complex to read and write.']}, {'end': 572.138, 'start': 118.104, 'title': 'Understanding node.js', 'summary': 'Explains how node.js, written in c++, allows the execution of javascript on a computer or server, not just in a browser, by using the v8 engine to compile javascript into machine code at runtime, with additional functionality for server-side tasks. it also outlines the role of node.js in handling requests on the server and its benefits compared to other server-side languages.', 'duration': 454.034, 'highlights': ['Node.js allows the execution of JavaScript on a computer or server, not just in a browser, by using the V8 engine to compile JavaScript into machine code at runtime.', 'Node.js provides additional functionality for JavaScript, such as the ability to read and write files, connect to a database, and act as a server for content, expanding its capabilities for server-side tasks.', 'Node.js serves as an alternative to other server-side languages like Python, Ruby, and PHP, allowing the use of the same language for both front-end and back-end development, and leveraging the extensive JavaScript community and third-party packages.']}], 'duration': 499.102, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms73036.jpg', 'highlights': ['Node.js allows execution of JavaScript on server using V8 engine', 'Node.js provides additional functionality for JavaScript, expanding capabilities for server-side tasks', 'Programming languages like c++ are abstracted from assembly code, easier to read and write', 'Assembly language is built on top of machine code, easier to read and write than machine code', 'Node.js serves as an alternative to other server-side languages, leveraging JavaScript community']}, {'end': 985.073, 'segs': [{'end': 634.415, 'src': 'embed', 'start': 601.366, 'weight': 3, 'content': [{'end': 603.268, 'text': 'it should give you back a version number.', 'start': 601.366, 'duration': 1.902}, {'end': 606.301, 'text': 'you can see, mine is version 14.1..', 'start': 603.268, 'duration': 3.033}, {'end': 614.7, 'text': "0. now, if you don't get a version number, it means you don't have node installed and you're going to have to go ahead and install it.", 'start': 606.301, 'duration': 8.399}, {'end': 620.905, 'text': 'likewise, you might get a different number, a smaller number, which means you have an older version of node,', 'start': 614.7, 'duration': 6.205}, {'end': 623.607, 'text': 'in which case you might want to update it as well.', 'start': 620.905, 'duration': 2.702}, {'end': 634.415, 'text': 'so in order to do that to install it or update it go to nodejs.org this link will be down below and then click on this button right here to install the latest version.', 'start': 623.607, 'duration': 10.808}], 'summary': 'Check and update node version from nodejs.org.', 'duration': 33.049, 'max_score': 601.366, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms601366.jpg'}, {'end': 739.737, 'src': 'embed', 'start': 709.262, 'weight': 2, 'content': [{'end': 715.383, 'text': "now i'm going to be using vs code or visual studio code, which is a great free text editor,", 'start': 709.262, 'duration': 6.121}, {'end': 722.345, 'text': 'and you can get it from code.visualstudio.com and click on this download button right here for mac or for windows.', 'start': 715.383, 'duration': 6.962}, {'end': 723.405, 'text': "but you don't have to use this.", 'start': 722.345, 'duration': 1.06}, {'end': 729.286, 'text': 'you can use your own favorite, like sublime or atom, if you prefer, but at the minute i would recommend this one.', 'start': 723.405, 'duration': 5.881}, {'end': 731.047, 'text': "it's a really nice text editor.", 'start': 729.286, 'duration': 1.761}, {'end': 739.737, 'text': 'so anyway, once you have your text editor installed, open it up and maybe start a new project folder in that text editor.', 'start': 731.787, 'duration': 7.95}], 'summary': 'Vs code is recommended for new projects. get it from code.visualstudio.com.', 'duration': 30.475, 'max_score': 709.262, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms709262.jpg'}, {'end': 825.021, 'src': 'heatmap', 'start': 790.691, 'weight': 0.959, 'content': [{'end': 800.7, 'text': 'now to open that up from the command line in vs code i can say code dot and that means open up visual studio code in the current directory.', 'start': 790.691, 'duration': 10.009}, {'end': 808.066, 'text': 'all right, so press enter and that should hopefully open up visual studio code in this project directory.', 'start': 800.7, 'duration': 7.366}, {'end': 809.026, 'text': 'we can see that right here.', 'start': 808.066, 'duration': 0.96}, {'end': 810.668, 'text': 'node crash course, okay.', 'start': 809.026, 'duration': 1.642}, {'end': 816.993, 'text': 'So then now we have our text editor open.', 'start': 814.611, 'duration': 2.382}, {'end': 818.635, 'text': "let's just give this a whirl.", 'start': 816.993, 'duration': 1.642}, {'end': 825.021, 'text': "What I'm going to do is create a new file over here, and I'm going to call this test.js.", 'start': 818.755, 'duration': 6.266}], 'summary': "Opening visual studio code from the command line using 'code dot' and creating a new file named test.js.", 'duration': 34.33, 'max_score': 790.691, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms790691.jpg'}, {'end': 940.108, 'src': 'embed', 'start': 907.944, 'weight': 1, 'content': [{'end': 911.748, 'text': 'So we could write any JavaScript inside this file, then run it.', 'start': 907.944, 'duration': 3.804}, {'end': 916.512, 'text': "And if we're logging things to the console, we're going to see them down here inside the terminal.", 'start': 912.248, 'duration': 4.264}, {'end': 922.137, 'text': "And that's how easy it is to run a JavaScript file on our computer using Node.", 'start': 916.592, 'duration': 5.545}, {'end': 924.979, 'text': 'This is not being run inside a browser anywhere now.', 'start': 922.417, 'duration': 2.562}, {'end': 928.202, 'text': "It's being run directly on our computer.", 'start': 925.279, 'duration': 2.923}, {'end': 930.865, 'text': 'Now finally, gang.', 'start': 929.625, 'duration': 1.24}, {'end': 940.108, 'text': "I've created course files for every single lesson in this tutorial series and they're all found on this GitHub repo right here node crash course.", 'start': 930.865, 'duration': 9.243}], 'summary': 'Running javascript files using node is simple and not browser-dependent. course files for every lesson are on github repo node crash course.', 'duration': 32.164, 'max_score': 907.944, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms907944.jpg'}, {'end': 972.923, 'src': 'embed', 'start': 948.63, 'weight': 0, 'content': [{'end': 956.794, 'text': "i'll leave this link down below, but essentially each lesson in this series is going to have its own branch in this github repo,", 'start': 948.63, 'duration': 8.164}, {'end': 962.197, 'text': 'so we can see the branches right here, and if you want to see the code for lesson four, for example,', 'start': 956.794, 'duration': 5.403}, {'end': 968.32, 'text': "you could go to the lesson four branch and you're going to see all of the code right here and all of the different files.", 'start': 962.197, 'duration': 6.123}, {'end': 972.923, 'text': 'now, if you want to download this, you can go to clone or download.', 'start': 968.32, 'duration': 4.603}], 'summary': 'Github repo organizes lessons with separate branches for each, allowing easy access to specific code.', 'duration': 24.293, 'max_score': 948.63, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms948630.jpg'}], 'start': 577.304, 'title': 'Node.js installation and javascript file setup', 'summary': 'Covers the installation of node.js, including checking for its presence, updating if necessary, and running javascript via the terminal. it also explains setting up a project folder, creating and running a javascript file using node, and accessing course files from a github repository.', 'chapters': [{'end': 731.047, 'start': 577.304, 'title': 'Installing node and running javascript', 'summary': 'Covers the installation of node.js, checking for its presence, updating if necessary, and using it to run javascript via the terminal. additionally, it recommends using visual studio code as a text editor for javascript development.', 'duration': 153.743, 'highlights': ['Node installation and version check', 'Running JavaScript through Node', 'Recommendation of Visual Studio Code as a text editor']}, {'end': 985.073, 'start': 731.787, 'title': 'Setting up and running a javascript file', 'summary': 'Explains how to set up a project folder, create and run a javascript file using node, and access course files from a github repository, emphasizing the ease of running javascript directly on the computer and providing a link to the github repository for accessing course files.', 'duration': 253.286, 'highlights': ['The process of creating a new project folder and running a JavaScript file using Node is demonstrated, highlighting the ease of running JavaScript directly on the computer.', 'Accessing course files from a GitHub repository is explained, providing information on accessing different lesson branches and downloading the code.']}], 'duration': 407.769, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zb3Qk8SG5Ms/pics/zb3Qk8SG5Ms577304.jpg', 'highlights': ['Accessing course files from a GitHub repository is explained, providing information on accessing different lesson branches and downloading the code.', 'The process of creating a new project folder and running a JavaScript file using Node is demonstrated, highlighting the ease of running JavaScript directly on the computer.', 'Recommendation of Visual Studio Code as a text editor', 'Node installation and version check', 'Running JavaScript through Node']}], 'highlights': ['Node.js enables directing people to learn the basics before delving into more advanced node tutorials in the future.', 'Node.js allows running JavaScript on the server side or directly on computers, expanding its usage beyond the traditional browser environment.', 'The tutorial aims to provide a more recent playlist for beginners, updating an older tutorial that is about four or five years old.', 'Node.js allows execution of JavaScript on server using V8 engine', 'Node.js provides additional functionality for JavaScript, expanding capabilities for server-side tasks', 'Accessing course files from a GitHub repository is explained, providing information on accessing different lesson branches and downloading the code.', 'The process of creating a new project folder and running a JavaScript file using Node is demonstrated, highlighting the ease of running JavaScript directly on the computer.', 'Node.js serves as an alternative to other server-side languages, leveraging JavaScript community', 'Recommendation of Visual Studio Code as a text editor', 'Node installation and version check', 'Running JavaScript through Node', 'Programming languages like c++ are abstracted from assembly code, easier to read and write', 'Assembly language is built on top of machine code, easier to read and write than machine code']}