The biggest use of Node is as a basis for web servers. A web server takes a client request and gives something back such as a new web page, text information or content.
Thanks to some great coders, there are packages already available that can be included in applications to create web servers. Node.js uses npm (Node package manager) which has packages that will make development faster and better. Require loads the libraries installed from npm. Node modules are built in modules that are automatically installed.
Packages are created by entering commands into terminal. In the project folder, enter command
npm init into terminal to create package.json file. The package.json file will contain the entry point which is the file that leads to the application. Express is a node package that is helpful with making routing easier which will help with sending and retrieving information from the server. To install express, enter command
npm install express and additional node modules will be added to the folder.
We are now ready to create schemas to store information and routes to send and receive information.