Author: Marinko Spasojevic

React with .NET Core and MySQL – Lazy Loading and HOC Component

In the previous post, we have set up the Redux environment completely and created the Axios instance to send HTTP requests. As a continuation, in this post, we are going to register our Redux repository inside a component and to use it to fetch data from the server. Furthermore, we are going to load our component lazily to demonstrate the advantage of the lazy content loading. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction to the .NET Core series. For the complete navigation and all the basic...

Read More

React with .NET Core and MySQL – HTTP, Axios, Redux

In this post, we are going to explain how to send HTTP requests from React. We can send requests from every component but we are going to do that by centralizing the HTTP logic as some kind of a repository. For this type and size of the project, the centralized solution fits perfectly fine. But if you have a larger and more complicated project it would be a good practice to split repository files, and thus, splitting the states. We are going to use axios as a third party library to send HTTP requests and Redux for centralizing the repository logic....

Read More

React with .NET Core and MySQL – Navigation and Routing

Even though we generate all of our components inside just one page, we still need a navigation to load these different components inside our index.html. The React Router enables this navigation functionality for our project. We are going to create three menu options: Home, Owner Actions, and Account Actions. This will be enough for us to see how navigation works in React and how to set up a lazy load functionality for an async component loading inside the project. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction...

Read More

React with .NET Core and MySQL – Preparing the Project and Creating Components

Creating the server part (.NET Core Web API part) is just a half of the job we want to accomplish. From this point onwards, we are going to dive into the client side of the application to consume the Web API part and show the results to a user by using React components and many other features. So let’s dive right into it. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction to the .NET Core series. For the complete navigation and all the basic instructions of the...

Read More

.NET Core 2.0, Angular and MySQL. Linux Deployment

After the IIS deployment, the last part of this series is the .NET Core Linux deployment. We use Ubuntu 16.04 Linux version on our VM, but you may use any version you want. Whether you want to deploy an application to the local VM with the Linux OS or to the VM you have purchased from the provider, the process is similar but a few steps may vary but we are going to cover them all. The important thing is that if you are using local VM set its adapter connection on a bridge adapter. It is usually in the Settings...

Read More