testing-eaf-template

Configures and verifies end-to-end tenant registration flows for the EAF Api and Angular template.

Updated May 8, 2026
One-click install
npx skills add https://github.com/afonsoft/EAF --skill testing-eaf-template-afonsoft
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: testing-eaf-template
Source: https://github.com/afonsoft/EAF/tree/main/.agents/skills/testing-eaf-template
Command: npx skills add https://github.com/afonsoft/EAF --skill testing-eaf-template-afonsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up and validating the public tenant registration flow of the EAF Api + Angular template requires coordinating SQL Server, .NET migrations, an Angular dev server, and multi-step API verification, which is error-prone when done manually. ## Core Features & Use Cases - Environment Setup: Guides SQL Server container creation, environment variables, EF Core migrations, and Angular proxy configuration for local development. - Registration Flow Verification: Provides curl commands and a functional test script covering tenant creation, join requests, approvals, tenant-scoped login, and user lockout. - Known Issue Workarounds: Documents fixes for slow Angular builds on low-resource VMs and source-map BOM parse errors. - Use Case: A developer validating a fresh EAF template checkout can spin up SQL Server in Docker, run the API and Angular UI, and execute the scripted 12-step registration test to confirm the Free edition tenant flow works end to end. ## Quick Start Set up the EAF Api and Angular template locally and verify the public tenant registration flow including tenant creation, join requests, and approvals.

Frequently Asked Questions about testing-eaf-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test the EAF template tenant registration flow locally?▼

Start a SQL Server container, run EF Core migrations against the Eaf.ProjectName.Web.Host project, launch the API on port 8001, and serve the Angular UI on port 8000 with a proxy config. Then use the provided curl commands or functional test script to create tenants and approve join requests.

How to create a new tenant via the EAF API?▼

Send a POST request to /api/services/app/Account/Register with tenantSelectionMode set to CreateNew, plus tenancyName, tenantName, admin user details, and password. New tenants are automatically linked to the Free edition (EditionId 1).

What database is required for EAF template local testing?▼

A local SQL Server instance is required, typically run as a Docker container using the mcr.microsoft.com/mssql/server:2022-latest image. The connection string is passed via the ConnectionStrings__Default environment variable.

Why is Angular ng serve slow or failing on a low-resource VM?▼

Angular builds can exceed available time on constrained VMs. Run npx tsc -p src/tsconfig.app.json --noEmit for a fast TypeScript-only check, and patch the devtools-ignore-plugin if a BOM causes source-map JSON parse errors.

Can users join an existing tenant instead of creating one?▼

Yes, registration supports a JoinExisting mode where the user submits an existingTenantId and a join request message. A tenant admin then lists pending requests and approves or rejects them before the user can log in.