Top
X
MENU
HOME
TOPICS
- Arts & Crafts
- Astronomy
- Computers
- Do it Yourself
- Education
- Finance
- Food
- General Knowledge
- Hacks
- Health
- Industries
- Music
- Nature
- Personalities
- Practical Engineering
- Products & Services
- Science
- Social Science
- Songs
- Spirituality
- Sports
- Sports
- Stories
- Talks & Interviews
- Technology
- Vehicles
MEMBER
Logout
What is Node.js and how it works (explained in 2 minutes)(6)
Your browser does not support the video tag.
Your browser does not support the audio element.
Hi, my name is Jason K I'm a full stack developer working in South Korea If you remember back to when we talked about six different things you can do with JavaScript I told you guys how you can build a server with JavaScript using Node.js so before we write our first blog post let's talk about how you can run a server with JavaScript. (
00:00
)
Node.js is a runtime environment Runtime environment is the environment in which a program or an application is executed so Node.js allows you to run a JavaScript program outside a browser like Firefox or Chrome Node.js does this by running the V8 engine which is the core of Google Chrome outside the browser (
00:20
)
Node.js has gained a lot of attention from front-end developers who can now build a server-side application with the programming language they're familiar with instead of learning a new one Node.js also allows you to use various NPM packages which is the easiest and the fastest way to use JavaScript modules a module is a block of code that can do something so if someone has written the code to build a calendar, a chart or table each of them can be considered as a module if a module is registered in NPM which stands for Node Package Manager you can very easily bring them and then integrate them into your project (
00:38
)
so if you want to add a calendar to your blog to check what kind of posts you've written on a certain date you don't have to write every single line of code on your own you can simply install a calendar package with NPM and integrate them into a project so as we continue with our project I'll show you some popular packages so you can get familiar with them Frameworks like Express.js and Nest..js have become very popular (
01:11
)
And in Korea a lot of companies use Node.js as the backbone of their server and this is because node.js runs in a single process this means that Node.js can handle thousands of requests in a single server we are also going to build our server with Node.js when you write a first post we're going to send a request to a server and. (
01:31
)
Node.js will handle the request and save the post to a database when someone else tries to access your blog we're gonna fetch this data from a server so that your visitors can read your post and that's it for today as always if you want to learn something specific please leave them in the comments below so I can answer your questions thank you and stay tuned (
01:49
)
0.00220977 seconds