This is a short document of important points and educational resources.
Node.js
- JavaScript-based framework for building event-oriented servers
- a platform that allows JavaScript to be used outside the Web Browsers
- create the server and server-side code for an application like most of the other web languages but using JavaScript
- built on Google Chrome's JavaScript Engine
- All APIs of Node.js library are asynchronous, that is, non-blocking. It essentially means a Node.js based server never waits for an API to return data. The server moves to the next API after calling it and a notification mechanism of Events of Node.js helps the server to get a response from the previous API call.
Helpful Text
Video Example
API / Web API
- The messenger that takes requests and tells a system what you want to do, and then return the response back to you.
Helpful Text
Video about API
Express JS
- Express is a minimal and flexible Node.js web application framework.
- You can install it with Node Package Manager. [ $ npm install express] use @ to install a specific version
- Creating a robust API is quick and easy
- Allows to dynamically render HTML Pages based on passing arguments to templates.
- set up middlewares to respond to HTTP Requests.
- Defines a routing table which is used to perform different actions based on HTTP Method and URL.
- Routing refers to determining how an application responds to a client request to a particular endpoint, which is a URI (or path) and a specific HTTP request method (GET, POST, and so on).
- Request Object − The request object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on.
- Response Object − The response object represents the HTTP response that an Express app sends when it gets an HTTP request.
- Express uses GET and POST methods
Helpful text
Video (introduction to express)