What is Express JS? The original author, TJ Holowaychuk, described it as a Sinatra-inspired server. Web Applications Express JS is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. APIs With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy. Performance Express JS provides a thin layer of fundamental web application features, without obscuring Node.js features that you know and need. Minimal features but many features available via plugins. Express JS most important feature is routing. Express JS is high performance, extensible framework and can reusable. Frameworks Many popular frameworks are based on Express JS. Designed for developing web applications and RESTful APIs. Ex: several popular Node.js frameworks are built on Express JS. Feathers : Build prototypes in minutes and production ready real-time app...
Posts
Showing posts from March, 2020
- Get link
- X
- Other Apps
REST Services & REST Architectural Constraints What is REST Service? REST was first defined b Roy Fielding in 2000. It stands for Representational State Transfer(REST). Actually, REST is an architectural model and design for server network applications . REST is used to build Web services that are lightweight, maintainable, and scalable in nature. A service which is built on the REST architecture is called a RESTful service. The underlying protocol for REST is HTTP, which is the the basic web protocol. REST stands for REpresentational State Transfer. Resources are identified by an URI and URIs may refer the same resource. It is use for client and server communication. REST does not enforce any rule regarding how it should be implemented at lower level, it just put high level design guidelines and leave you to think of your own implementation. REST Architectural Constraints 01.Uniform interface As the constraint name itself applies, you MUST deci...
- Get link
- X
- Other Apps
React Component Lifecycle Constructor The constructor() method is called before anything else, when the component is initiated, and it is the natural place to set up the initial state and other initial values. The constructor() method is called with the props, as arguments, and you should always start by calling the super(props) before anything else. this will initiate the parent's constructor method and allows the component to inherit methods from its parent (React.Component) we don't use setState() method in the constructor() function. When use setState(), then apart from assigning to the object state react also rerenders the component and all it's children. Which don't need in the constructor, since the component hasn't been rendered anyway. Example for constructor() method; out put is; Render render() is the most used method for any React powered component which returns a JSX with backend data. It is seen as a normal fu...
- Get link
- X
- Other Apps
React JS Features and Components what is React JS? React JS is a declarative, efficient and flexible JavaScript library for building user interfaces. It's 'V' in MVC. React JS is an open-source, component-based front end library responsible only for the view layer of the application. It was initially developed and maintained by Jordan Walke, a software engineer of Facebook and later used in its products like Whatsapp and Instagram. React first deployed on Facebook's newsfeed in 2011 on instagram in 2012. A react application is made of multiple components, each responsible for rendering a small, reusable piece of HTML. Components can be nested within other components to allow complex applications to be built out of simple building blocks. Uses of React JS The main purpose of React is to be fast, scalable, and simple.It can be used with a combination of other JavaScript libraries or frameworks, such as Angular JS in MVC. React uses a declarative p...