[Frontend] Becoming good enough at NodeJs

NodeJs has become more and more popular, also because javascript is so powerful in all aspects now, it is possible to write so many kinds of apps using Js, using NodeJs to create apps for so many different types can be amazing, just because it can be run on so many platforms.
There are several frameworks that a developer has to master in Js so that he can create apps quickly, I'd very much like to first give some practical utilities on different aspects when using Js, the common features are most often networking, OS, file, database, http rest, and server side renderings. So, most often networking is creating a server socket bind on certain port and giving stream to clients visiting the port. This can be very useful. The socket is listening on the port, when a client visits the port, the socket accept the parameter, and then handle it, at last give a stream response to certain port, in http, it is most often in browser.
So, in node Js, express framework is a must know library. In addition, there is another type of framework which handles data interaction. That is, mysql or mongo, these are also very important things.
On http, there is the http module, so in node, we can create a web server by requiring http module.
On file system, the fs module is what we need, so, we can read file synchronously or asynchronously by requiring the module.

What does _ mean in nodeJs?

It represents previous value of expression, so just use a variable to get the value of previous expression. REPL means

What does callback in NodeJs mean?

Callback in NodeJs means for asynchronously doing something or just method.

What does event emitter mean in NodeJs?

In nodeJs, first create an event, event handler, then emitter trigger the event, then call the event handler. This is the right flow. So we just require the events module.

What does buffer mean in NodeJs?

Buffer.from function, buffer is used to store binary data in Js, because most often in Js it is just string data.

What is stream in NodeJs?

Stream in nodeJs is most often file streams, can create read or write streams, or pipe one stream to another to merge or migrate.

What is nodeJs module system?

In nodeJs by requiring a module, it is able to create an object, with the all the module exports as content, in this way, the objects can be used.

What is nodeJs function?

The function concept is the same with that in Js, it is possible to write functions or anonymous function.

What is router in nodeJs?

Most often, it is able to operate http request url by requiring url module.

What are nodeJs global objects?

In nodeJs, there are __filename, __dirname, process, console, setInterval, setTimeout.

What are most often used tools in node Js?

By requiring util module in nodeJs, it is possible to perform inherits, or inspect, isArray, isRegExp,isDate, isError functions.

What about file system in node Js?

In nodeJs, it is possible to operate dirs, files, watch files, read or write to file system or stat file information.

What about get and post requests in nodeJs?

Get request is in url, so, it is able to get all information of a get request by requiring url module. Post request is data received when data event of request is triggered. So, get data in handler of data, and on end handler get the whole of the data.

What are nodeJs tools modules?

OS module, Path module, Net module, DNS module, Domain module. Can use Net module to connect a server and receive data.

What is web module in nodeJS?

Can use http module to send data to server.

What is Express framework in nodeJs?

It is possible to create rest web api using express framework.

var express=require('express')
var app=express()
app.get("/",(req,res)=>{})
var server= app.listen(8000,()=>{console.log(`server is running on port ${ server.address().port }`)})

What is node Js multi child process?

By requiring child process, it is able to write tasks asynchronously. https://www.runoob.com/nodejs/nodejs-process.html

What is packaging with JXCore in nodeJs?

By installing jxcore tool, it is possible to package the project with jx command, and run the project too.

What is mysql operations in nodeJs?

By installing mysql in nodeJs, it is able to connect to mysql using nodeJs and run commands.

What is mongoldb connection in nodeJs?

It is possible to do operations by installing mongoldb module package in node Js.

你可能感兴趣的:([Frontend] Becoming good enough at NodeJs)