Posts

Showing posts with the label Razor

Building Blocks of React-Native

Image
Building Blocks of React-Native, ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE                       Building Blocks of React-Native Today, we will be discussing the 4-core concept of React-Native also knows as building blocks of React Native. component  JSX props state component  A component is a very basic element in react-native we can divide the large application into many small Components. This makes development fast and maintains the code very clear to understand. We will take an example to understand the component Let's create a new ReactNative app following the below command. react-native init MyFirstApp The above command will create a new react native app  MyFirstApp . Note: if react native is not installed then use npm install -g react-native-cli to install it in your machine Now use cd MyFirstApp and hit enter button Now use npx react-native run-android command and hit the enter button,  Congratulation, Your First app is running

What’s the Difference Between Razor and Blazor

What is the Difference Between Razor and Blazor, ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE Blazor Blazor enables sharing code across client- and server-side processes, server-side rendering functionality, and more. When building a single-page application, Angular or React are popular JavaScript frameworks to use.  Blazor is a framework for building interactive client-side web UI with .NET: ·          Create rich interactive UIs using C# instead of JavaScript. ·          Share server-side and client-side app logic written in .NET. ·          Render the UI as HTML and CSS for wide browser support, including mobile browsers. ·          Integrate with modern hosting platforms, such as  Docker . Using .NET for client-side web development offers the following advantages: ·          Write code in C# instead of JavaScript. ·          Leverage the existing .NET eco

Testing & Debugging

Image
Testing and Debugging, ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE                                                Testing & Debugging Here I'll brief some important points on debugging and why it is essential. as well as dive into the implementation details for creating  unit and integration tests. Why Is Testing Important? Since from last few years, software testing has become an integral part of product quality assurance (QA). We all do some level of testing(Manual or Automation) of our code before deploying it to a production environment, be it a simple little quick-and-dirty exploratory testing or full-blown automated testing that covers nearly 104 percent of the code. One can imagine what would happen if car companies just designed, built, and released their vehicles without first doing some form of testing. Software is no different. Just like in the case of cars, users rely on working software to do their daily tasks. In the c

API Security in C#

Image
API Security , ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE                                 Security Implementation in API Having APIs everywhere is excellent, but they need to be secure externally as well as internally. Even a small breach has the potential risk of a damaging ripple effect. API security is not limited to authentication or authorization but also includes protecting the underlying infrastructure, like rate limiting to prevent denial of service (dos) or distributed denial of service (DDoS) attacks. Attackers continuously come up with new and creative ways to breach systems, and it’s important to keep on standard and up-to-date with the latest threats out there. ASP.NET Core offers a wide range of features to help us configure and manage the security of our APIs. The framework provides a rich identity model for securing applications and integrates with third-party identity providers like Facebook or Twitter, as well as off

Logging and Error Handling | Exception Handling

Image
Logging and Error Handling | Exception Handling , ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE   Logging and Error Handling | Exception handling Mechanism Application logging plays a crucial role in tracking and identifying issues that may  surface as well as in providing useful insights into the workflow processes of solutions. When things go wrong, one of the first sources to look at is the application’s log. Depending on the number of details that are logged, each entry represents an action that occurred at a specific date and time. Logs can contain system-generated events as well as events explicitly defined by the developer and are usually grouped into categories like errors, informational, and warning. Application logs are application-specific, hence the name, and do not often include OS-specific events. Let's begin Adding Logging  Logging can be used anywhere in ASP.NET Core, and to create a log we merely need to inject an I