I start the back-end development understanding that a back-end web developer is responsible for server-side web application logic and integration of the work front-end developers do. Back-end developers are usually writing the web services and APIs used by front-end developers and mobile application developers. I was introduced to Node js as
đšī¸ Node.js is an open-source server environment
đšī¸ Node.js is free
đšī¸ Node.js runs on various platforms (Windows, Linux, Unix, Mac OS, etc.)
đšī¸ Node.js uses JavaScript on the server
What Node.js Do?
đšī¸ Node.js can generate the dynamic page content
đšī¸ Node.js can create, open, read, write, delete, and close files on the server
đšī¸ Node.js can collect form data
đšī¸ Node.js can add, delete, modify data in your database
What a Node.js File is?
đšī¸ Node.js files contain tasks that will be executed on certain events
đšī¸ A typical event is someone trying to access a port on the server
đšī¸ Node.js files must be initiated on the server before having any effect
đšī¸ Node.js files have extension ".js"
What is a Module in Node.js?
đšī¸ Modules are considered to be the same as JavaScript libraries. A set of functions you want to include in your application.
Node.js as a File Server
đšī¸ The Node.js file system module allows you to work with the file system on your computer.
To include the File System module, use the require() method:
var fs = require('fs');
A common use for the File System module:
đšī¸ Read files
đšī¸ Create files
đšī¸ Update files
đšī¸ Delete files
đšī¸ Rename files
The Built-in URL Module
The URL module splits up a web address into...
readable parts. To include the URL module, use the require() method:
var url = require('url');
What is NPM?
đ¸ NPM is a package manager for Node.js packages, or modules if you like. I proceed By installing an NPM library and running it in my hyper terminal which I console log a random superheroes name and supervillain name.
Top comments (0)