Author: Marinko Spasojevic

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

Angular Development Best Practices

In this article, we are going to show what we consider to be the best practices in Angular while develop the client side project in this framework. During the development process it is really easy to forget about some rules or recommendations in Angular, so having the reference to look at from time to time is a good way to refresh memory. Without further ado, let’s dive right into it. In this blog post, we are going to go through the following sections: Angular CLI Files and Folders in Angular Project File Naming Class Names Folder Structure Angular Coding...

Read More

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

In the previous parts, we have covered many different React features. The way to create the input controls from the configuration object and validation of those controls are just some of the features we have covered. These features will be useful in this part of the series where we send the PUT request towards the server in order to update our entity object. So, let’s dive right 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: Form Validation and Handling POST...

Read More

Implementing Asynchronous Generic Repository in ASP.NET Core

In this post, we are going to convert the synchronous code to asynchronous inside ASP.NET Core. First, we are going to learn a bit about asynchronous programming and why should we write async code. Then we are going to use our project from the .NET Core series and rewrite it in an async manner. In Part 4 of the series, we have created Generic Repository Pattern and in Part 5 and Part 6 the Controller with Actions that consumes that repository. We recommend reading those articles if you are not familiar with Generic Repository Pattern or if you find any of...

Read More