<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>User Management on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/user-management/</link><description>Recent content in User Management on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 20 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/user-management/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 8: User Registration and Login Flow</title><link>https://ai-blog.noorshomelab.dev/chat-guide/chapter-8-user-auth-flow/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/chat-guide/chapter-8-user-auth-flow/</guid><description>&lt;p&gt;While we introduced basic user registration and login in Chapter 4, this chapter focuses on refining these critical endpoints. We&amp;rsquo;ll ensure robust data validation, provide clear error messages, and integrate the user management more tightly with our database. This is about building a solid, production-ready authentication foundation.&lt;/p&gt;
&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of this Chapter&lt;/h3&gt;
&lt;p&gt;By the end of this chapter, you will:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have dedicated endpoints for user registration and login.&lt;/li&gt;
&lt;li&gt;Understand data validation for incoming user data.&lt;/li&gt;
&lt;li&gt;Implement proper password hashing and verification.&lt;/li&gt;
&lt;li&gt;Ensure that authenticated users are correctly identified and used throughout the application.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="concepts-explained-data-validation--error-handling"&gt;Concepts Explained: Data Validation &amp;amp; Error Handling&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Data Validation:&lt;/strong&gt; Ensuring that incoming data (like username and password during registration) meets expected criteria. FastAPI leverages Pydantic for this, which allows you to define strict schemas for your request bodies.&lt;/p&gt;</description></item><item><title>Project Chapter 15.1: Defining User Model and Service</title><link>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-1-user-model-and-service/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-1-user-model-and-service/</guid><description>&lt;h2 id="project-chapter-151-defining-user-model-and-service"&gt;Project Chapter 15.1: Defining User Model and Service&lt;/h2&gt;
&lt;p&gt;Welcome to the first coding chapter of our User Management Application project! We&amp;rsquo;ll start by establishing the foundational elements: the data model for a user and a service to handle all communication with our (mock) backend API.&lt;/p&gt;
&lt;p&gt;This chapter directly applies our understanding of Angular&amp;rsquo;s new HttpClient default and best practices for creating services.&lt;/p&gt;
&lt;h3 id="step-1-define-the-user-interface"&gt;Step 1: Define the User Interface&lt;/h3&gt;
&lt;p&gt;First, let&amp;rsquo;s define what a &lt;code&gt;User&lt;/code&gt; looks like in our application. This promotes type safety throughout our code.&lt;/p&gt;</description></item><item><title>Project Chapter 15.3: Adding New Users with Signal Forms</title><link>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-3-adding-new-users-with-signal-forms/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-3-adding-new-users-with-signal-forms/</guid><description>&lt;h2 id="project-chapter-153-adding-new-users-with-signal-forms"&gt;Project Chapter 15.3: Adding New Users with Signal Forms&lt;/h2&gt;
&lt;p&gt;Now that we can display our list of users, the next logical step is to allow adding new ones. This is a perfect opportunity to get hands-on with Angular v21&amp;rsquo;s &lt;strong&gt;experimental Signal Forms&lt;/strong&gt;. We&amp;rsquo;ll create a &lt;code&gt;UserFormComponent&lt;/code&gt; that lets users input details for a new user, validates the input, and then uses our &lt;code&gt;UserService&lt;/code&gt; to persist the data.&lt;/p&gt;
&lt;p&gt;Remember, Signal Forms are experimental, so the API might evolve, but this will give you valuable experience with this promising feature.&lt;/p&gt;</description></item><item><title>Project Chapter 15.4: Integrating and Routing</title><link>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-4-integrating-and-routing/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-4-integrating-and-routing/</guid><description>&lt;h2 id="project-chapter-154-integrating-and-routing"&gt;Project Chapter 15.4: Integrating and Routing&lt;/h2&gt;
&lt;p&gt;Our User Management Application now has a &lt;code&gt;UserListComponent&lt;/code&gt; and a &lt;code&gt;UserFormComponent&lt;/code&gt;. While we&amp;rsquo;ve temporarily placed them directly in &lt;code&gt;AppComponent&lt;/code&gt;, a real-world application needs proper routing to navigate between different views. In this chapter, we&amp;rsquo;ll structure our application with routing, creating dedicated &amp;ldquo;pages&amp;rdquo; for user listing and user creation.&lt;/p&gt;
&lt;p&gt;This will utilize Angular&amp;rsquo;s router and reinforce the use of standalone components within a routed application.&lt;/p&gt;</description></item><item><title>Project Chapter 15.6: Testing Core Components and Services (with Vitest)</title><link>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-6-testing-core-components-and-services/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-6-testing-core-components-and-services/</guid><description>&lt;h2 id="project-chapter-156-testing-core-components-and-services-with-vitest"&gt;Project Chapter 15.6: Testing Core Components and Services (with Vitest)&lt;/h2&gt;
&lt;p&gt;We&amp;rsquo;ve built a functional user management application, leveraging many Angular v21 features. Now, it&amp;rsquo;s critical to ensure its reliability and maintainability through testing. In this chapter, we&amp;rsquo;ll write unit tests for our &lt;code&gt;UserService&lt;/code&gt; and &lt;code&gt;UserListComponent&lt;/code&gt; using &lt;strong&gt;Vitest&lt;/strong&gt;, which is the new default testing framework in Angular v21.&lt;/p&gt;
&lt;p&gt;This will put our knowledge of Vitest, &lt;code&gt;TestBed&lt;/code&gt;, mocking, and &lt;code&gt;fixture.whenStable()&lt;/code&gt; into practical use.&lt;/p&gt;</description></item></channel></rss>