Node.js is a modern web framework that allows you to build rich applications. As a developer, you need to know just one programming language to build an application that can be executed anywhere, be it the server, console, browser, or on your mobile phone.
This course begins with explaining how Node.js works and what its architecture is all about. You will then learn to create your first Node.js application and also create a command line tool for Node.js. Next, you will learn how to work with commander.js and use the event emitter because events are a powerful extension that can be used in our application.
The course will then teach you to use and define streams and transformers, after which you will be skilled to build a web server with Express.js. This will be followed by taking you through how to read, write, and manipulate files in the file system with Node.js. You will even learn how to create micro services with the loopback API framework and Seneca.js, post which we will scale our node.js application and test our code. Finally, you will complete your learning journey by using these APIs to create a web server, access file system, and create real-time interactions.
With this course, you will be able to build your own tools, along with big network and real-time applications.
About The Author
Joris Hermans is a Senior Software Developer with more than 10 years of experience in programming for the web. He has worked for an online directory company creating web applications that hits traffic of more than a million page views a week. Now he works in the R&D department of a big automation company. He has a lot of experience in building large-scale web applications. He participates in a lot of discussions regarding the web and his specifications. He likes to follow new technological trends and hypes.
In this video, we will provide the viewer with the necessary information about the installation process of Node.js.
Understand how does Node.js work and what is behind the logic of Node.js.
Learn how we can use and test some Node.js code without writing some code in a .js file.
Understand what the event loop is.
Understand that when you want to build a tool in the console, you can use node.js to build it for you.
Creating CLI tools with just the basic Node.js API is hard. So to cover this, we have some useful libraries at our disposal.
We want to have access to our tool with a common name. Now when we want to use our tool we need to go to the location of the script and perform node <scriptname>.
Understand what are the events in node.js and how can we use them in our advance.
Timers are also a sort of event, an event scheduled in time. How does this come along in our entire story?
How can I use the functionality of EventEmitter to my own objects?
We can go more into depth with events regarding what can we do when we want to listen to an event just once. How can we deal with listeners?
Streams are very useful to work with data and to manipulate data. But how are we going to do that?
Learn more about how to play with streams and their transformers.
Understand how we can create a simple http-server that listens to http requests.
Understand how we can handle data when we post data to our web server.
If you want to build a big web application, using only the node.js APIsis a lot of effort. So in this chapter, we will dive into the libraries that are created on top of the http libraries of Node.js.
Middleware is a very important part of Express. It results in extending the request object and adding a certain value to every request.
In this video, we explain more advanced middleware and in more detail, the authentication middleware.
To get away from callbacks and to provide a more elegant API to build web applications you can use Koa.js.
When we want to search for a file, we need to iterate over files and folders.
How can we react upon a file change by reading and watching a file?
Before we can write content to a file, we need to check whether the file exists!
When you need to upload files to your server, how do you handle this in node.js and Express.js?
How can we handle the Node.js process, what can we do against errors, and how can we react upon an exit off the process?
How can we launch another program or the bash program from within our program?
When we spawn another child process, how can we communicate with it?
How to perform bidirectional communication in node.js?
How can we make a real-time application without the use of websockets, and what are other ways to perform a real-time action in Node.js and the web?
How can we communicate from one server to another server?
How can we create applications that scale?We need better software architecture. To do so, we split our application into smaller applications.
How do we bring our application to the cloud?
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.