Spread the loveThere are many things that you can do with Web Camera in your Web Application. For example, you can make a portrait picture and send it to the ML service to identify your age. Or you can take a picture of the sky and try to identify whether outside. Or you can apply […]
Spread the loveA few days ago, the Blazor WebAssembly was officially released. And It’s a good reason to “taste” it. After watching a great “Modern Web UI with Blazor WebAssembly” demo on Microsoft Build 2020, a couple of ideas of cool Blazor components appeared in my mind. But such components should interact with some existing […]
There are not many examples of how to use a Webpack 4 on the front-end part of the ASP.NET Core 3.1 MVC application. One way is to use some specific middleware, but here I will use tools and pipelines that are conventional among the front-end developers:
NPM package manager to manage Node.js packages and to run scripts.
SASS to process styles.
Webpack 4 to bundle all things together.
and Visual Studio Code as an IDE.
There is a really good article in the official ASP.NET Core documentation, which explains how to apply role restrictions to your controller actions. But after reading, it still was hard for me to get answers for a couple of questions:
How to seed initial records of the users and roles to the database?
And how to assign the new user to the default role?
Let’s find out what we can do.