What is the purpose of MongoDB?
MongoDB is a document-oriented database manager created for storing vast volumes of data. It saves data in a binary JSON format and executes the concept of documentation and collection. MongoDB is a NoSQL cross-platform database integrated with high scalability, high performance, and flexibility that allows for seamless indexing and querying.
Explain what could be the purpose of ExpressJS?
ExpressJS is a web application framework that supports and hosts Node.js projects. It is an open-source framework that is available within the MIT license. ExpressJS manages the workflow between the database and the frontend and enables a secure and smooth data transfer. It features excellent error handling and web designing functionalities to enhance the web development process.
What purpose does AngularJS serve?
AngularJS is a front-end, open-source web application development framework for developing single-page applications maintained by Google. It enables Web Developers to use HT ML as their template language and utilize the HTML syntax to represent a web app’s components precisely and clearly.
Explain what is a Routing Guard in Angular.
The route guards in Angular are interfaces that tell the router whether or not it should enable navigation to a route that has been requested. Route guards make this decision by looking for a true or false return value from a class that executes the given guard interface. There are five types of guards, each of which is called in a specific sequence. The router’s behavior is altered differently depending on the guard used. The guards are:
- CanActivate
- CanActivateChild
- CanDeactivate
- CanLoad
- Resolve
Do you think that TypeScript supports all object-oriented principles?
Yes, TypeScript supports all the object-oriented principles. There are four main principles of Object oriented Programming
- Inheritance,
- Encapsulation,
- Polymorphism and
- Abstraction
TypeScript can implement all four object-oriented programming principles with a cleaner and smaller syntax.
Explain how the Centralized Workflow works.
The centralized workflow uses a central repository to act as the single point of entry for all modifications to the project. The default development branch is known as master, and all changes are made to this branch. Developers begin by cloning the central repository. They edit files and make changes to their local copies of the project. These new modifications are stored locally. Developers then push their local main branch to the central repository to make changes to the official project. Before a developer can publish their feature, they must fetch the modified central commits and rebase their edits on top of them. The Centralized Workflow has no well-defined forking patterns or pull requests as compared to other workflows.
Explain the scenarios when Node.js should not be used.
Node.js can be used for spreading applications. In cases where the system requires a long interval, we should not use Node.js. If the server performs some calculations, then it may not be able to method the other requests at that time. Thus, if there is a method that requires a less dedicated C.P.U. time, then Node.js is a perfect choice.
Node.js should be used for applications that require a long processing time. This is because a single-threaded node is organized. Therefore, if a single application requires long-running calculations in the background, it cannot process further requests.
Explain what Data Modeling is.
In the MongoDB and Mongoose context, data modeling controls what data can be present in a database and what data should be in a document. You may want to be able to save the email address, last name, first name, and telephone number while keeping the user information. But you only require an email address and the first name, and the email address needs to be unique. This information is the basis for the data model in a schema.
What is the usage of a buffer class in Node.js?
The buffer class in Node.js is used to store raw data as an entire array. However, it is similar to a primitive memory assignment available outside the V8 heap. It is a global class that can be accessed easily without importing a buffer module in an application. Buffer classes are used as pure JavaScript is not compatible with binary data. Thus, handling octet streams while dealing with TCP streams or the file system is important.
Explain why we use mean stack.
Web applications can easily be created with Node.js as they provide a good number of JavaScript modules from their enormous library. Mean stack allows developers to write JavaScript code only in one language, which is a quick and simple language on both the server and the client pages.