- Видео 343
- Просмотров 633 959
Learn Smart Coding
США
Добавлен 16 июл 2020
Welcome to LearnSmartCoding, the go-to channel for developers seeking to enhance their skills in various technical topics. This channel is dedicated to providing high-quality tutorials, tips, and tricks to help you become a smarter and more efficient coder.
Covering a wide range of topics, from Angular and DOTNET CORE Web API to JavaScript, Dockers, Kubernetes, Azure DevOps CI/CD, and Azure, I strive to cater to your learning needs. My videos are designed to be beginner-friendly and easy to follow, yet informative and in-depth enough for advanced developers.
As a passionate coder, I am committed to sharing my knowledge and expertise with you. Whether you're just starting out or already a pro, this channel has something for everyone. Join our community of smart coders and take your coding skills to the next level.
Subscribe now and never miss out on the latest tutorials and updates. Let's learn, grow, and code smarter together!
Covering a wide range of topics, from Angular and DOTNET CORE Web API to JavaScript, Dockers, Kubernetes, Azure DevOps CI/CD, and Azure, I strive to cater to your learning needs. My videos are designed to be beginner-friendly and easy to follow, yet informative and in-depth enough for advanced developers.
As a passionate coder, I am committed to sharing my knowledge and expertise with you. Whether you're just starting out or already a pro, this channel has something for everyone. Join our community of smart coders and take your coding skills to the next level.
Subscribe now and never miss out on the latest tutorials and updates. Let's learn, grow, and code smarter together!
💻 Microsoft Certification Exams | Free Retake Offer! Take the Leap This December!
Are you planning to take a Microsoft Certification exam like AZ-104 or AZ-305? This December 2024, get an incredible Cyber Monday deal from Pearson VUE! 🎉
📌 Here’s how it works:
Schedule, purchase, and take your exam between December 2-31, 2024.
If you don’t pass, you get a FREE retake with the promo code VUECyberMondayRetake.
Your second attempt can be scheduled between January 1-April 17, 2025.
This is a great opportunity to save on retake costs and ace your certification exams stress-free. I'll explain the eligibility, terms, and how to make the most of this amazing offer.
👉 Don’t forget to share this with your friends or colleagues preparing for certifications. Let’s make December count!
🔗 U...
📌 Here’s how it works:
Schedule, purchase, and take your exam between December 2-31, 2024.
If you don’t pass, you get a FREE retake with the promo code VUECyberMondayRetake.
Your second attempt can be scheduled between January 1-April 17, 2025.
This is a great opportunity to save on retake costs and ace your certification exams stress-free. I'll explain the eligibility, terms, and how to make the most of this amazing offer.
👉 Don’t forget to share this with your friends or colleagues preparing for certifications. Let’s make December count!
🔗 U...
Просмотров: 211
Видео
Set Up Swagger UI Authentication with Azure AD | Step-By-Step Guide
Просмотров 43328 дней назад
In this video, I’ll show you how to integrate Azure Active Directory authentication with Swagger UI for securing your API. We’ll cover the entire process from setting up your Azure AD app registration, configuring OAuth2 flow, to configuring Swagger UI for authentication. This setup ensures that your API endpoints are protected, and only authorized users can access them. If you’re looking to im...
Angular 18 Resolver: Pre-Load Data Complete Guide
Просмотров 316Месяц назад
In this tutorial, learn how to implement Angular 18 Resolvers to fetch data before loading a component. This approach ensures that your components have all the necessary data before they are rendered. We will walk through setting up a resolver, attaching it to your route, and accessing the resolved data in your component. Perfect for Angular developers looking to improve data handling in their ...
Mastering Angular 18's @Input and @Output for Seamless Data Sharing
Просмотров 237Месяц назад
In this Angular 18 tutorial, we dive deep into @Input() and @Output() decorators to manage data between components. We’ll build a course details component to display the content in view mode and create a review component for guests to submit their reviews. You’ll learn how to pass data from parent to child components using @Input() and how to emit events from child components back to the parent...
Angular 18 Dynamic Form with Reactive Forms & CRUD Operations
Просмотров 229Месяц назад
In this Angular 18 tutorial, we’ll build a dynamic form using Reactive Forms to perform CRUD operations on course details, including session management. We’ll walk you through setting up the form to handle multiple sessions dynamically, allowing users to add or remove sessions for a course. Learn how to bind your model to the form, manage form arrays, and implement validations to ensure a smoot...
Mastering GLOBAL Error Handling in Angular Made EASY
Просмотров 160Месяц назад
In this tutorial, learn how to implement global error handling in Angular for both HTTP and non-HTTP errors. This video covers setting up a custom GlobalErrorHandler for non-HTTP errors and how to use HTTP interceptors for catching and handling API errors. We’ll also cover how to simulate errors, handle circular dependencies, and provide a seamless user experience using Toastr for notifications...
Secure Sign-In Made EASY With Azure AD B2C's BEST MFA Tips!
Просмотров 175Месяц назад
In this video, we’re diving deep into essential Azure AD B2C settings to help you create a secure, seamless user experience for your application. Learn how to configure 'Per User MFA' for added security, set up the 'Remember Me' functionality for user convenience, and apply custom branding to your login and sign-up pages to reflect your company’s identity. I’ll guide you through each of these c...
Clean Architecture Explained: A Step-by-Step Guide to a ToDo App
Просмотров 793Месяц назад
In this video, we dive deep into Clean Architecture principles as we build a fully functional ToDo application using .NET Core 8 and Web API. You’ll learn how to structure your application for maintainability and scalability while implementing best practices for code organization. We will cover essential topics including: The layers of Clean Architecture Implementing repositories and services S...
How to Set Up In-Memory Database in 5 Minutes!
Просмотров 98Месяц назад
In this video, we dive into database seeding techniques for both in-memory and real databases in a .NET 8 Clean Architecture project. Learn how to set up Entity Framework Core for in-memory testing and configure real database seeding for production. We’ll walk you through the setup, configuration, and best practices for seeding your data using .NET 8 and EF Core in a scalable Clean Architecture...
Stop Breaking Your Code - Learn Unit Testing Now
Просмотров 165Месяц назад
In this video, we cover unit testing fundamentals in a .NET 8 Clean Architecture project! From setup to test execution, learn how to structure your unit tests using xUnit and Moq in a modular and maintainable .NET 8 application. We'll walk you through creating tests for services and repositories, explaining best practices to help you write clean, effective tests that ensure your application’s r...
Top EF Core Interview Q&A: Real-World Scenarios & Expert Answers!
Просмотров 215Месяц назад
Are you getting ready for an EF Core interview? This video covers the top EF Core questions you need to know to impress any interviewer! From key EF Core concepts to troubleshooting, data logging, and performance optimization, we'll explore the questions that highlight your practical, real-world skills. These questions and answers go beyond the basics, addressing essential EF Core functions lik...
Angular 18 Lazy Loading Guide: Traditional vs. Standalone Components
Просмотров 637Месяц назад
Discover the power of lazy loading in Angular 18 to optimize your application’s performance. This video covers both the traditional lazy loading approach with NgModules and the latest standalone component-based lazy loading introduced in Angular 18. Learn step-by-step how to set up lazy loading routes and understand when to use each method. We also walk you through implementing lazy-loaded guar...
Angular ANIMATIONS That Will Make Your Website POP!
Просмотров 363Месяц назад
Enhance user experience with smooth page transitions in your Angular app! In this video, we demonstrate how to set up route animations using Angular’s powerful animations library. You’ll learn how to apply custom transitions for seamless navigation between pages, making your app feel more professional and engaging. Whether you're a beginner or experienced developer, this step-by-step guide will...
CanDeactivate GUARD Saves You from Unsaved Changes!
Просмотров 204Месяц назад
Learn how to use the CanDeactivate guard in Angular to prevent accidental navigation and protect unsaved changes! This quick tutorial shows you how to set up the guard, create prompts for users, and enhance your app’s user experience by ensuring users don’t lose their data. Perfect for Angular developers looking to add an extra layer of safety to their forms and other critical data entry points...
Master AZURE POLICY in 15 Minutes FLAT!
Просмотров 84Месяц назад
Master AZURE POLICY in 15 Minutes FLAT!
You Won't Believe How SIMPLE Azure RBAC Can Be!
Просмотров 127Месяц назад
You Won't Believe How SIMPLE Azure RBAC Can Be!
Conquer the .NET Core and Web API Interview in 2024!
Просмотров 544Месяц назад
Conquer the .NET Core and Web API Interview in 2024!
JWT SECRETS That Will Change Your Future
Просмотров 220Месяц назад
JWT SECRETS That Will Change Your Future
Net Core 8 with SignalR is the FASTEST Combo for Real-Time Chat Apps
Просмотров 883Месяц назад
Net Core 8 with SignalR is the FASTEST Combo for Real-Time Chat Apps
Build Your First Full Stack Web App From Zero to Hero!
Просмотров 5 тыс.Месяц назад
Build Your First Full Stack Web App From Zero to Hero!
Angular 18 Auth Guards: The Ultimate Guide!
Просмотров 1,1 тыс.2 месяца назад
Angular 18 Auth Guards: The Ultimate Guide!
Angular 18 Reactive Forms CRUD - Ultimate Guide for Beginners
Просмотров 1,8 тыс.2 месяца назад
Angular 18 Reactive Forms CRUD - Ultimate Guide for Beginners
Master Angular Image Uploads to Azure Storage in Minutes!
Просмотров 3102 месяца назад
Master Angular Image Uploads to Azure Storage in Minutes!
The Secret to Building a dotnet core 8 Web API That Actually Works
Просмотров 2042 месяца назад
The Secret to Building a dotnet core 8 Web API That Actually Works
The EXPERT Guide to NgRx Spinner and Toaster for Angular Mastery
Просмотров 2352 месяца назад
The EXPERT Guide to NgRx Spinner and Toaster for Angular Mastery
Master Angular NOW Build Your First Web App Step-by-Step
Просмотров 1832 месяца назад
Master Angular NOW Build Your First Web App Step-by-Step
Master Angular Directives in Record Time with Real World Examples
Просмотров 1542 месяца назад
Master Angular Directives in Record Time with Real World Examples
What If You Could MASTER Angular Data Binding in Minutes?
Просмотров 952 месяца назад
What If You Could MASTER Angular Data Binding in Minutes?
Supercharge Your .NET Core API with Azure Monitor
Просмотров 2412 месяца назад
Supercharge Your .NET Core API with Azure Monitor
How to Implement Health Checks & Liveness Probes in .NET Core Web API | Step-by-Step Guide
Просмотров 2842 месяца назад
How to Implement Health Checks & Liveness Probes in .NET Core Web API | Step-by-Step Guide
Very nice video. Amazing speech and clear overview. Thank you.
This is full end to end project or not ???? Please Tell Me
Yes, it is a full end to end project for a full stack developer.
can you share source code?
hi karthik. thanks for the tutorial. but I wanna ask something. you have 10 db table but I have 12. I used your db sql script. why this happened?
Hi, thank you for asking. Please share the extra tables you see from your side. Let me check.
@learnsmartcoding thanks your fast answer. They are smart app and video request tables.
Thank you for sharing. I checked here github.com/learnsmartcoding/online-course-api/blob/main/LSC.OnlineCourse.Data/Database_Script/OnlineCourseDB.sql There are 13 tables and I added "VideoRequest" table after the initial database design hence you will find it in the end of the script. Hope this clarifies. Feel free to ask me if you have any other questions. Happy coding!
Hi Karthik ! Thanks for the project. Could you please provide architecture of the project with diagrams at the beginning
Hi SaiPavan, Thank you for watching the video and I hope you find it useful. You are looking for high level project architecture like the below one ? If yes, I will make a one for this Full-stack video. Going forward, I will include such info as well. github.com/learnsmartcoding/restaurant-table-booking-app.api/blob/main/RestaurantTableBookingApp.API/RestaurantTableBooking.svg Full stack video can be found here ruclips.net/video/70q8PanGbnw/видео.htmlsi=qMu4I2MjS3uUcaPg Please let me know if you need any other information. Happy coding!
@@learnsmartcodingThank you 😊
Nice tutorial, thank you so much! How to use javascript in the custom html?
Thank you for the kind words. You can either place the script 5 the html page you use it or keep it separate and give the link in the html. Either way, it works.hope this helps.
I want to use this same repo to deploy on azure function using GitLab CICD. so there is need change anything in source file? and after deploying can I get same UI Whatever you mentioned in this video?
Yes, it should work as the configuration to build in the repo code. Just follow the steps and let me know if you face any issues.
@ it is possible could please provide GitLab cicd code for this
@ after deploying the same UI can I get right? Whatever you mentioned in the Video
@ and there is need to change in local.setting.json?
@sharukhannadagoud for azure functions, local.settings applicable only for local development. After you deploy the function app, all settings are in azure configuration.
Thanks, man
Happy to help
Thanks brother for the video, I have a application with Angular+.net core in same project the project and api url is same, so do i need to set-up anything for backend or just using spa works?
Thank you for your question! When Angular and the .NET Core API are part of the same project (e.g., created with the .NET Core + Angular template), here’s what you should do to secure the application with Azure AD: App Registrations: Even though the Angular SPA and backend API share the same domain, you still need two separate app registrations in Azure AD: Frontend (Angular): For user authentication and obtaining tokens. Backend (API): To secure API endpoints by validating tokens issued by Azure AD. Redirect URLs: The Angular app will have a redirect URL like: yourdomain.com (or yourdomain.com/auth-callback if you’ve customized it). The backend app doesn’t require a redirect URL but does need API permissions and an expose an API configuration in its app registration. Backend Protection: The backend must validate tokens from the frontend. Use the Microsoft.Identity.Web library in your .NET Core project for this purpose. Configure authentication middleware to ensure only valid requests with proper tokens can access the API endpoints. MSAL Integration in Angular: Configure msal-angular to acquire tokens for the backend API by specifying the API scope exposed in Azure AD. Example Scope: yourtenant.onmicrosoft.com/backend-app-id-uri/YourAPI.Scope. By doing this, both your frontend and backend will be properly secured. Using just the SPA without securing the backend is not sufficient, as your API will remain unprotected. Let me know if you'd like more details or a step-by-step guide!
Is it possible to give dynamic configuration for this sso like client id, tenants etc. Also do we need backend setup or just use spa angular library msal-angular and browser
Dynamic configuration for client ID and tenant is technically possible but usually unnecessary and adds complexity unless your app must support multiple tenants dynamically. For most cases, static configuration with predefined values in environment.ts works best. Regarding backend setup: yes, you should protect your backend as well. Use msal-angular in the SPA for token acquisition and validate tokens in the backend using libraries like Microsoft.Identity.Web for .NET Core. Protecting only the SPA without securing the backend leaves the API exposed to unauthorized access.
@learnsmartcoding Okay thank you so much 🙏
Hey bro can we implement msal authentication by dynamic configuration? If possible please make a video
Part is after 10 min
Is it true? I didn't see this offer in Microsoft official page
Hi, it is true and i showed the details . Please check the web links in the description. Also, this is from Pearson, not from Microsoft.
@learnsmartcoding Thank you I will book the exam right now
Tried to book the exam but the visa international card did not support is there any other way to book the exam
@cserajesh may i know from which country you are trying to book?
@@learnsmartcoding india
Hi, I have a single page application and a .net core web api, and I need to ge the roles of the users in the token claims after loggin in
Hi Francisco, Thank you for watching and asking questions. Are you looking for azure ad b2c or azure ad? This video is based on azure ad authentication and authorization.
@@learnsmartcoding Thanks for your reply, I'm looking for azure ad, but I cannot grant admin permissions like you in the video when clicking api permissions for the frontend app, i saw your other video and came here to check everything, maybe that could be the reasong, isn't it?
Thnaks for tutorial. Is that db offer free for lifetime even after free offer duration?
Yes, per subscription, this offer applies. Once free quota reaches, either you can pause or set as pay and continue. It is good to set as a pause for learning purpose
@learnsmartcoding Thanks for detail! I'm gotta make small server for personal learning purpose.
please guide I am beginner in .NET Full Stack Developer Journey should I start with Angular or .NET Core Initially
Hi Vijay, Thank you for your question! Starting your full-stack developer journey depends on what you want to achieve initially: Start with .NET Core: If you're new to full-stack development, it's a good idea to begin with the backend first. Learning .NET Core will help you understand how to build APIs, handle data, and work with databases like SQL Server. These are foundational skills for any full-stack developer. You'll also learn concepts like dependency injection, middleware, and API design, which are essential in most full-stack projects. Move to Angular: Once you’re comfortable with the backend, transition to Angular to create the frontend. Angular is a powerful framework for building dynamic and user-friendly web interfaces. Starting Angular after .NET Core makes it easier to connect your frontend to your backend APIs and see the full-stack integration in action. Alternative Path: If you’re more interested in UI/UX design or frontend development initially, you could start with Angular to understand how user interfaces work, then move to .NET Core for backend knowledge. Ultimately, the order depends on your interests, but for most beginners, starting with .NET Core provides a solid foundation for full-stack development. Good luck with your journey, and feel free to ask more questions! 😊
@@learnsmartcoding Thanks for guidance
Is there any sql script for inserting default data into products, category etc tables
Hi, you can find the Database script here. github.com/learnsmartcoding/e-commerce-smartcarthub-microservices/blob/main/LearnSmartDB_DB_Script.sql Hope this helps
Thank you very much. You are a great teacher. Very cool !
Thank you! 😃
Hi can you give some advice for me, if i need to do user authentication and access API exposing through azure api manager , what technology we can use ?
Hi Mithil, Great question! To implement user authentication and secure your APIs exposed through Azure API Management (APIM), here’s a structured approach: 1. User Authentication Technologies Azure AD: Best for enterprise scenarios where users belong to your organization or a trusted partner. Azure AD B2C: Ideal for scenarios where you have external users, like customers, needing to sign in via social accounts (Google, Facebook) or local accounts. These services handle user authentication and provide JWT tokens for API access. 2. Securing APIs via Azure API Management Azure API Management offers several ways to secure APIs: OAuth 2.0: Configure APIM to validate the JWT token issued by Azure AD/Azure AD B2C. This ensures that only authenticated users can access your APIs. API Key: Use this if you need an additional layer of security alongside user authentication. Client Certificates: For even more secure communication between the client and APIM. 3. Recommended Flow User Logs In: Use Azure AD or Azure AD B2C to authenticate the user. Once authenticated, the user gets an access token (JWT). Token Sent to APIM: The client (frontend or any consumer) includes the token in the Authorization header of the API request (Bearer token). APIM Validates Token: Configure policies in Azure API Management to validate the token against your chosen identity provider (Azure AD/Azure AD B2C). APIM ensures only valid tokens are forwarded to your backend APIs. Backend API Processing: The backend API receives requests only from APIM, trusting the already validated token. Tech Stack Recommendations Frontend: Any technology (Angular, React, etc.) capable of implementing OAuth 2.0. Backend APIs: Build using ASP.NET Core, Node.js, or any API framework that supports token validation. Authentication: Use Azure AD/Azure AD B2C with OAuth 2.0. Pro Tip Explore APIM policy templates to configure token validation, rate-limiting, caching, and more without needing to modify your backend APIs. Let me know if you’d like a more specific walkthrough for any part of this setup! 😊
@@learnsmartcoding Thank you soo much for your reply, i will go through your reply and let you know, mean while i was checking feasibility of building credential manager of azure api manager , they also provide authentication through, AAD,Google,Facebook... but still i have problem whether , i can connect it access apis expose through azure app service
Hi Mithil, You're welcome! I'm glad my earlier response was helpful. Regarding your idea of building a credential manager for Azure API Management, you're on the right track. Azure API Management does indeed support authentication via Azure AD, Google, Facebook, and more for securing APIs. These identity providers allow you to implement robust security without handling sensitive credentials yourself. To address your concern about connecting to APIs exposed through Azure App Service: Securing App Service APIs with Azure API Management: You can integrate your APIs hosted on Azure App Service with Azure API Management. API Management acts as a gateway, adding authentication and access controls before requests reach your App Service APIs. You can use OAuth 2.0 with Azure AD or other identity providers to secure API access. Users authenticate with their credentials, and upon successful validation, they receive an access token that is validated by the API Management gateway. Steps for Feasibility Testing: API Registration: Register your App Service API in Azure AD or the appropriate identity provider. API Management Configuration: Configure API Management to enforce authentication by setting up policies like validate-jwt or using OAuth 2.0 flows. Testing: Use tools like Postman to test the full flow (authentication through identity provider → access API via API Management → API hosted on App Service). Let me know how your exploration goes! Happy learning!
useful
Glad you found it helpful!
can you provide a documentation from microsoft that demonstrate or recommends this? Btw, love this kind of content, straight to the point!
Hi Sumit, Thank you for the kind words! 😊 I’m glad you found the video useful. Regarding your request, Microsoft has detailed documentation on leveraging Key Vault references in Azure App Services. Here's the official link that provides guidance and recommendations: 🔗 Secure app configuration with Azure Key Vault references learn.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal learn.microsoft.com/en-us/azure/app-service/app-service-key-vault-references?tabs=azure-cli This document covers how to configure Key Vault references in your application settings, manage identity permissions, and ensure secure runtime secret retrieval. Let me know if you have more questions or need further clarification!
What do j do if i have a full stack angular n django
Hi, sorry for the delay. Are you asking how to deploy using ci cd using django?
@learnsmartcoding like I have an application with angular frontend and Django backend. Azure Postgresql for database. How should I set this up
Thanks for the video. Question, you didn't configure an authentication method like implicit or authorization code + pkce. Is there a default and how do I know that, other than inspecting the url? Thank you.
Hi Erik, Apologies for the delay in responding to your question. Thank you for watching and for your question! 😊 In the video, I configured the authentication flow implicitly by setting it up through the library's defaults and Azure AD B2C configuration. By default, when using MSAL.js (the library commonly used with Angular for Azure AD B2C), it uses the Authorization Code Flow with PKCE for security, as this is now the recommended standard. You can confirm the flow by checking the MSAL library configurations in the code (like authConfig in Angular) or inspecting the network requests in the browser’s developer tools. Look for the /authorize endpoint in the request; if you see a code parameter returned, it's using the Authorization Code Flow with PKCE. If you'd like to explicitly configure the flow or better understand the setup, here’s the official Microsoft documentation on MSAL.js authentication methods. You may try this link smartlearnbykarthik.azurewebsites.net/ and watch network for /authorize request you will see it used code. The URL will confirm that the Authorization Code Flow with PKCE is being used, which is the recommended and most secure flow for public clients like Single Page Applications (SPA). Here's how we can tell: response_type=code: Indicates that the Authorization Code Flow is being used. code_challenge and code_challenge_method=S256: These parameters confirm that PKCE (Proof Key for Code Exchange) is enabled. PKCE is an extension to the Authorization Code Flow that adds an extra layer of security. scope: Includes standard OpenID Connect scopes (openid, profile, and offline_access) along with your custom API scopes, which is correct. x-client-SKU and x-client-VER: Shows that MSAL.js is being used, and the version is 3.21.0. This setup is aligned with Azure AD B2C best practices. Let me know if this clears up your query or if you need more help!
Can we Azure AD B2C to Authentication ?
Hi Vinod, Thank you for watching. Yes, you can use Azure AD B2C for authentication.
The steps are exactly the same for ad b2c. Great tutorial explaining it. Thank you.
Can you attach the script to the description... it the video yo say it was there, although I cannot find the SQL script to create the tables and the inserted data will be very good! I want donate to your channel... and work with you starting this video, I am going be in touch w/you. Let me know when you get chance if you can attach the SQL script to the above description. thank you !
Hi, I have updated the video's description with the database script link. Here is the link for you. github.com/learnsmartcoding/online-course-api/blob/main/LSC.OnlineCourse.Data/Database_Script/OnlineCourseDB.sql Hope this helps.
thank you ! I have script and am creating DB and tables now :--)
Feel free to ask questions if you have any. Happy coding!
@@learnsmartcoding thank you ! I found everything at approx 8:40:00 in the video for the storage account setup, and got it working !
is this video series covers all points for az 204, learning and certification point of view?
Hi, This video is just a part of AZ-204 video from functions topic. I have a playlist for AZ-204 certification. Please let me know if you need any other info. Happy learning!
very nice, pls upload more videos related to az 204 !/ Thank you
Thank you! I'm planning to make more videos in the future on Azure related topics.
Good luck
Good one! Subscribed, liked, commented and shared :)
Thanks for your support! I appreciate you watching and sharing.
Great video...thanks for the knowledge
You're welcome! I'm glad you found it helpful.
Hey for me the CSS and custom style is loaded but the page is not fuctional. I do not get an error and when I click submit nothing happens. Is there a way to display the error?
Hi, Thank you for watching the video. You could see errors in the developers' tool console, for windows press F12. If you don't find any error, I suggest repeat the step as per video and see if you missed any steps. Please let me know how it goes.
@learnsmartcoding I will check again. The html content is coming from a next js server component page, could this be a problem?
Is there any video related to css bootstrap
Hi, Thank you for watching. I do not have any video focusing only on CSS. I suggest the w3school website is good for learning.
Can you help me to understand why you created separate tenants for Front end and Back end
Hi Sandeep, Thank you for your question! I believe there’s a slight misunderstanding. In the video, I didn’t create separate tenants for the frontend and backend. Here's What I Did: My Azure account already has a default Azure AD tenant (associated with my Microsoft account). I used this tenant to register applications for the frontend (Angular) and backend (ASP.NET Core Web API). App Registrations: I registered two separate applications in the same tenant: One for the frontend, to handle user authentication and acquire tokens. Another for the backend, to secure the API and validate the tokens sent by the frontend. Why Separate App Registrations? This separation ensures proper security and role definition: The frontend application gets an access token with appropriate scopes to call the backend API. The backend application validates the token to ensure the requests are authorized. Key Takeaway There is no need to create a new tenant for Azure AD. I simply used the default tenant in my Azure account and registered the necessary applications under it. This is the standard practice for implementing Azure AD with SSO. If anything is unclear, feel free to ask! 😊
When does the the component get destroyed for module based and standalone based when lazy loaded ?
Hi Viznu, Great question! When a lazy-loaded component is destroyed, whether it’s module-based or standalone, the behavior is the same because Angular's lifecycle management is consistent across both approaches. When a Component Gets Destroyed: Module-Based Lazy Loading: The component is destroyed when its view is removed from the DOM, such as when you navigate away from its route or the parent component that hosts the lazy-loaded module is destroyed. Standalone Component Lazy Loading: Similarly, the standalone lazy-loaded component gets destroyed when it is no longer part of the active DOM, typically due to route changes or the destruction of its hosting component. Key Lifecycle Hook: In both cases, the ngOnDestroy lifecycle hook is triggered just before the component instance is destroyed, allowing you to clean up subscriptions, resources, or memory leaks. The main difference between module-based and standalone approaches lies in the structure and modularity, but the lazy loading lifecycle remains identical. Let me know if you'd like further clarification or examples!
Thank you for the fantastic session, well explained, we are expecting many more such fantastic training videos in .NET and angular (full stack)
Thank you! I'm glad you enjoyed the video. You can expect more on .NET and angular in the future.
Please use react instead of angular
Hi, Thank you for the feedback. I will make react and angular apps going forward.
@learnsmartcoding thanks for replying
Does this this repo really eorking after setup? Plese let me
Hi, you need to get the api key from openai. I have shown how to register and get api key.
Could you please share the code or a step by step tutorial for azure ad authentication for the website shown in the above video. Thanks for the tutorial on jwt tokens
Hi, Thank you for watching. The app shown in the video is "Online Course Enrollment" application and used Azure AD B2C. Here is the video link. ruclips.net/video/Cxftp90K_ek/видео.htmlsi=zLaRlzbAVi2oxcx8 I also have made many Azure AD, Azure AD B2C authentication videos and can be found from below link (it filters specific video) www.youtube.com/@learnsmartcoding/search?query=azure%20ad Feel free to let me know if you have any other questions. Hope this helps
How to do it if you're on a mac?
Hi, You can run an Angular app on a Mac by installing Node.js and Angular CLI. After that, clone or create an Angular project, install dependencies using npm install, and start the app with ng serve. You can then access it in your browser at localhost:4200. Let me know if you need more detailed steps! 😊
Thank you so much for this video. Please tell us how to co-y paste the README file. Did not get it. I'm a beginner. Also tell us how to use the code from git repo.
Hi, You can find the README file within the GitHub repo, and use git clone to download the code. In case you want to learn GIT, please check this video ruclips.net/video/Xohwrcr7AKQ/видео.htmlsi=LGvSyf8SnqiO8rUy Repos: github.com/learnsmartcoding/online-course-api github.com/learnsmartcoding/online-course-ui github.com/learnsmartcoding/online-course-functions Hope this helps
here main content is key .how can you got key here, when i am trying to access key its showing Request quota exceeded. Check your API plan and billing. is there any free api and key can you help me out
Hi Harsha, Thank you for watching. Yes, API_KEY is the main here to access ChatGTP APIs. You need to register with OpenAI and get API Key. Depending on where you are, the cost might be different. There is no Free plan to my knowledge. Hope this helps.
I am facing same issue after deploying angular website in hostinger. I have added web.config file in src/ and updated the angular.json however still issue persist. I would appreciate quick help here. Thanks
Hi Narmata, Thanks for trying it out. Is the hosting you deployed your angular code a Windows server or Linux server? This video is for a windows based server, and for Linux, the configuration is a bit different. Please share some error details as well to assist you further. Looking forward to hearing from you.
Thanks for the video, Ngx-bootstrap integration part is very helpful with angular18
I'm happy you found it useful!
Slow down a bit. Are you making other people understand or just going through the whole process.
Hi TechWizard, Thank you for the feedback. Point taken. Will go bit slow!
brother please tell me what are topics which is mandatory to learn being a .net developer.
Hi Muhammad, Great question! To be a proficient .NET developer, here are some mandatory topics to focus on: Core .NET Skills: C# Fundamentals: Understand object-oriented programming (OOP) concepts, LINQ, collections, async/await, and exception handling. ASP.NET Core: Learn how to build web applications and APIs using controllers, middleware, dependency injection, and Razor pages. Entity Framework Core: Master database operations like migrations, queries, and relationships using EF Core. Web APIs: Know how to build RESTful APIs, handle HTTP methods, and manage authentication/authorization (e.g., JWT or OAuth2). Tools & Practices: Version Control: Get familiar with Git and platforms like GitHub or Azure DevOps. CI/CD: Understand the basics of automating builds and deployments using Azure DevOps or GitHub Actions. Unit Testing: Learn about testing frameworks like xUnit or MSTest. Docker and Containers: Understand how to containerize .NET applications. Additional Topics: Authentication & Authorization: Learn Azure AD or IdentityServer for securing apps. Cloud Platforms: Focus on Azure as it's widely used with .NET apps. Microservices: Understand how to build and integrate smaller services with gRPC or REST. Focus on project-based learning-building real-world apps will help you apply what you learn and stand out as a developer. Let me know if you'd like a more detailed roadmap or resources for any of these! while Docker and CI/CD may not be "mandatory" at the entry level, they’re highly recommended as you grow into more senior or versatile roles. Hope this clarifies your questions and feel free to let me know if you have any other questions. Happy coding!
@learnsmartcoding thanks plz tell me what are the topics in azure for .net developer?
I strongly suggest to go through the details in this full stack web development video. github.com/learnsmartcoding/restaurant-table-booking-app.api raw.githubusercontent.com/learnsmartcoding/restaurant-table-booking-app.api/main/RestaurantTableBookingApp.API/RestaurantTableBooking.svg The important Azure services are covered in this applications. Here is the video link. ruclips.net/video/70q8PanGbnw/видео.htmlsi=79CR3LrelvvnR7W7 Let me know if this helps.
Hi storageaccount connectionstring is empty due to that unable to see the images in UI can you please help me on that
Hi Karthikeyan, Thank you for watching the video. Please follow the steps in the below video clip, you will be able to setup the Azure storage account and get the connection string. Unfortunately, I cannot share the connection string from end. Upload Image to Azure Storage (Using Angular & Web API): 08:34:15 - 08:49:55 Please let me know if you need any other help or questions. I'm happy to assist you. Happy coding!
Thank you
Hi sir can u make all microservices patterns and example saga and others so that we can understand microservices start to end
Hi Vivek, sure. I will make the ToafoApp in different architectures similar to how we did with clean architecture. Stay tuned.
Thank you. It's worked for me.
I'm glad it worked for you! Happy coding!
KK sir, how would I register DI for DBContext class for the database in SQL server ? Sir I have added the EF core package in Infra layer so how do I register DI for DBContext in program.cs ? I hope you got my point
Hi MP, Thank you for the question. For the DBContext, we register in the program.cs github.com/learnsmartcoding/CleanArchitecture-ToDoApp-DotNet8-WebApi/blob/main/TodoApp.WebAPI/Program.cs#L47 With this, you can use it as mentioned below. With this, the app can provide an instance of DbContext to the repository. github.com/learnsmartcoding/CleanArchitecture-ToDoApp-DotNet8-WebApi/blob/main/TodoApp.Infrastructure/Repositories/UserRepository.cs#L17 Hope I answered your question. Please ask if you have any other questions or if you need more info on the current question, feel free to let me know. I'm happy to answer! Happy coding!
you will have to use builder.Services.AddDbContext<NameOfDbContext> just like this one builder.Services.AddDbContext<ApplicationDbContext>(options => { options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")); }); and in appsettings: "ConnectionStrings": { "DefaultConnection": "your connectionstring" } but i prefer to make a di injection class in the same project and send it over via IServiceCollection to keep program.cs cleaner
@salar1997 yes I got that but dbcontext requires EF okay .. EF package has been installed in only Infrastructure layer
@@learnsmartcoding thanks sir I got it now .. we have to use the reference of Infra layer in API project so as to use EF DBconext in program.cs
@@MP_04_02 yeah i missunderstood, but instead of making a DI class only for dbcontext, just make a DependencyInjection class in infrastructure and lay dbcontext and the repository services there instead, then its not neccessary to add them in program.cs
hi, from where I can find apis?
Hi, Thank you for watching. The APIs can be found here github.com/learnsmartcoding/online-course-api Hope this helps.