Author: Marinko Spasojevic

C# Basics – Development Environment Setup

In this article, we are going to talk about what IDE is and how we can use Visual Studio to create a new project. For the complete navigation of this series check out: C# Back to Basics. In this article, we are going to cover the following topics: Integrated Development Environment (IDE) Watch Window Conclusion Integrated Development Environment (IDE) IDE stands for Integrated Development environment. It is basically a tool that helps us develop applications more easily. It has many features that can make our lives easier. For example, some common features include: Source code editor Debugger Compiler Templates...

Read More

Global Error Handling in ASP.NET Core Web API

The exception handling features help us deal with the unforeseen errors which could appear in our code.  To handle exceptions we can use the try-catch block in our code as well as finally keyword to clean up resources afterward. Even though there is nothing wrong with the try-catch blocks in our Actions in Web API project, we can extract all the exception handling logic into a single centralized place. By doing that, we make our actions more readable and the error handling process more maintainable. If we want to make our actions even more readable and maintainable, we can...

Read More

ASP.NET Core Authentication with JWT and Angular – Part 2

Angular is a modern framework for developing single page web applications. Angular is developed and backed by Google. Back in days creating the single page applications was a nightmare for developers. We had to manage everything from the state management to the HTTP calls. But those days are definitely gone. Now we have the plenty JavaScript frameworks available on the market, ready for the development process of the amazing web applications. Angular is one of those frameworks. It’s both popular and feature-rich framework that you can get to know and work with easily. Creating a rich browser application is awesome...

Read More

ASP.NET Core Authentication with JWT and Angular – Part 1

Securing a web application is one of the most important to do and usually one of the hardest things to pull off. In this series, we are going to learn how to implement authentication with Angular on the front end side and ASP.Net Core on the server side using the JSON web tokens (JWT). We are also going to learn how authentication works in general and how to utilize JSON web tokens to securely transmit user’s credentials from the server to the client and vice versa. Therefore, we are going to divide this series into two parts. In the first part, we are going to implement backend service...

Read More

React with .NET Core and MySQL – Handling Delete Request in React

In this post, we are going to code a business logic for the DeleteOwner component to delete an entity from the server. After we implement this component, we’ll complete this series and have all the CRUD operations. Without further ado, let’s get into it. For the complete navigation and all the basic instructions of the React series, check out: Introduction to the React series. For the previous part check out: Handling Update Request in React The source code is available at GitHub: React series – react-series-part9-end branch This post is divided into several sections: Preparations for the Delete Owner Component and the Delete Route...

Read More