Monthly Archives: February 2024

ASP NET CORE INTRODUCTION

ASP NET CORE INTRODUCTION Today knowing how to build a web application is a good skill to have, because the web is the platform on which companies base or evolve their Business. Using ASP.NET Core to build web applications is a good choice because it allows you to build secure applications according to regulations. In this course we will learn this by dropping into a real project, building a real application. WHY ASP NET CORE It is important to stand critically before a new technology. What problems does it solve? Is it suitable for my case? and so on. [...]

By |2024-02-10T18:58:50+00:00February 10, 2024|0 Comments

THE DOTNET COMMAND

THE DOTNET COMMAND The dotnet command provides access to a wide range of functionality. We saw last section the new and run subcommand. Let us look at the most frequently used dotnet commands with a series of slides. Let's look at some commonly used commands. A web application is not an island unto itself; rather, it will connect to third-party services to add functionality to the application itself. To find out if there is a package visit nuget.org, for example, for an electronic invoicing package. [...]

By |2024-02-12T19:22:22+00:00February 12, 2024|0 Comments

STRUCTURE OF AN ASP .NET CORE PROJECT

THE PROJECT FILE .CSPROJ Let's analyze the project file. This content is used to instruct the Build platform on how our application should be compiled and published. TargetFramework identifies the version of .NET Core, in our case version eight. The moment version nine comes out we will simply update this value. There is no reference to any source files, i.e., files having the extension .cs as this is not necessary. It will be the Build platform that will take care of searching and compiling all the sources of the project, it is no longer necessary to specify all of [...]

By |2024-02-17T19:52:21+00:00February 17, 2024|0 Comments

ASP.NET CORE MVC THE CONTROLLER

CREATE WEB CONTENT WITH ASP.NET CORE MVC AND RAZOR PAGES As a first step, I leave you the link on azure of the complete project. Some operations have been disabled, however to get an idea about what we will develop is more than enough. This is the link: https://my-course.azurewebsites.net Let's extract a couple of points from the specifications. Two asks us to make a list of courses. If a user finds a course he or she likes, as described in step five, he or she will enter a course detail page with the option to register [...]

By |2024-02-21T20:27:19+00:00February 21, 2024|0 Comments

VIEWS IN ASP.NET CORE PART ONE

ASP.NET CORE MVC LE VIEWS CREATE THE FIRST CONTENT VIEW Razor is the name of the view-engine, which is that component within .NET Core MVC applications that is responsible for processing views to produce HTML. The views are composed of HTML code mixed with C# code, hence the .cshtml extension. Let's look at where views should be created and the subdivision of directories. The name of the View must be the same as that of the Action within the Controller. Let's edit the Controller and display the result. [...]

By |2024-02-24T19:51:28+00:00February 24, 2024|0 Comments

VIEWS IN ASP.NET CORE PART TWO

CURATE UI WITH BOOTSTRAP AND FONTAWESOME To improve the UI what we can do as developers is to get client-side libraries such as Bootstrap and Fontawesome to improve the graphical part of the website. Bootstrap provides a grid of twelve columns. If we take the .col-xl-4 class, its width will be 1/3 of the grid if the user's screen is xl, that is, extra large. Should the browser window shrink, the elements will be organized one below the other. To use Bootstrap you need to download [...]

By |2024-02-27T15:56:06+00:00February 27, 2024|0 Comments

THE MODEL IN ASP.NET CORE MVC

ORGANIZE THE LOGIC WITHIN THE MODEL In this section we will write Model classes that will allow us to obtain data from a data source that is for the moment still fictitious. The controller acting as the coordinator will go to make use of these classes and pass them to the Views. Let's get into M, that is, the Model in the MVC architecture. Let us first say that there are no patterns that fit every project and every development team, in our project we will use application services that return a ViewModel with the information [...]

By |2024-02-28T16:04:29+00:00February 28, 2024|0 Comments

INTRODUCTION TO SPRING BOOT

SPRING BOOT It is time to deal with another of the fundamental frameworks that are available to us. The Spring Boot. Let's look at the main features with slides. Point two means that the applications we are going to create with this framework once we run the build will be ready to use, they will not need anything else to run. The main features of Spring Boot are three. First of all simplified dependency management, the Spring Framework as we used it had one small flaw, we had to waste time searching for [...]

By |2024-02-08T19:53:39+00:00February 8, 2024|0 Comments

SPRING SECURITY ADVANCED

INTRODUCTION TO SECURITY CHANGES In the previous post we created the users, their roles and passwords by wiring them directly into the code as we were working on a test phase. The information on username, password and roles, must be stored in the DBMS, encrypting the password. This is imposed on us by Spring but is certainly a good programming rule. It is in the UTENTI table that has a one-to-one relationship with the CLIENTI table where the credentials, USERID and PASSWORD, are stored. The PROFILI table will store user roles. The relationship is one-to-many; a user can be [...]

By |2024-02-05T02:47:12+00:00February 4, 2024|0 Comments
Go to Top