Skip to main content
This guide adds a Projects feature from scratch, following the same patterns used throughout AspFox. Every code block here is compilable — not pseudocode.
1

Create the domain entity

2

Create the EF Core configuration

3

Add DbSet to ApplicationDbContext

Also register the configuration in OnModelCreating:
4

Add the interface to IApplicationDbContext

5

Create the migration

6

Create the DTO

7

Create CreateProjectCommand

8

Create GetProjectsQuery

9

Create ProjectsController

10

Create the TypeScript types

11

Create TanStack Query hooks

12

Create the ProjectsPage component

13

Add the route

14

Add to the sidebar

15

Add to the command palette

That is the complete path from domain entity to rendered React page. The pattern repeats for every feature in AspFox.