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)