Dear all, I am going to make a web application using .net core as web api and angular as frontend technology, I want an good reference example by which I can follow , secondly I would like to have roles ,authentication and authorization automatically like .NET identity so can someone give any reference sample by which my basic code would not to be write manually like for login ,logout ,etc.
Loading
Vishal YelvePosted Apr 25, 2023, 4:46 AM
Hi Mark,
Ill suggest you to refer below link which has all your reqirements
For .Net Core Web Api - https://tutexchange.com/learn-asp-net-core-web-api-from-project/
For angular + .Net Core Web Api - https://github.com/saineshwar/ASPNET-Core-Angular-7-Project
Tuhin PaulPosted Apr 24, 2023, 7:42 AM
Below some reference website:
Tuhin PaulPosted Apr 24, 2023, 7:42 AM
Some examples available online for creating a web application using .NET Core and Angular, you can follow them before starting:
1. ASP.NET Core Angular SPA Template
2. Angular + .NET Core CRUD API
3. Angular + ASP.NET Core 6
4. Building a CRUD Application with ASP.NET Core and Angular
5. For a robust authentication and authorization mechanism, you might consider implementing ASP.NET Identity along with JWT (JSON Web Tokens). This combination ensures secure user management, access control, and session handling.
6. Regarding the database choice, Microsoft SQL Server (MS SQL) is a reliable option, but there are several Open Source alternatives such as PostgreSQL, MySQL, MongoDB, and Cassandra that could serve your purpose effectively, depending on your project requirements. Remember that selecting a suitable database largely depends on factors such as scalability, data structure, read/write operations, and cost efficiency.
Rajkiran SwainPosted Apr 22, 2023, 12:58 PM
There are several reference examples available online that can guide you through the development process.
One such example is the ASP.NET Core Identity documentation provided by Microsoft. It covers topics like user registration, login, and authorization, and provides a step-by-step guide on how to set up and configure identity in your application. You can find the documentation here: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-6.0&tabs=visual-studio
Another useful resource is the Angular documentation provided by Google, which covers a range of topics including user authentication and authorization. You can find the documentation here: https://angular.io/guide/user-authentication
In addition, there are several open-source projects available on GitHub that provide reference implementations of .NET Core and Angular applications with user authentication and authorization, such as the "Angular 10 .NET Core 3.1 Starter Kit" by Mahmoud Ali: https://github.com/Intelliabb/angular-dotnetcore-starter
I hope these resources help you get started on your project. Good luck!