Skip to main content

The Basics

This tutorial walks you through building your first Shesha application from scratch. By the end you will have configured a working CRUD application with a custom domain model, a child table, and a custom API.

The tutorial assumes you already have the starter project running locally. If you do not, follow Setting Up (Windows) or Mac OS / Linux Setup first.


What You Will Learn

The tutorial is split into four sections, each building on the previous one:

StepSectionWhat you build
1Configuring Your First ViewTable view, create form, and details view for managing people.
2Extending the Domain ModelNew Member entity, reference list, and migration to extend the Person table.
3Adding New Entities and Child TablesNew MembershipPayment entity wired to the member's details view as a child table.
4Custom APIsCustom app service that enforces business rules before activating a membership.

Prerequisites

To follow the tutorial comfortably you should have some experience with ASP.NET Core and React. You also need the following tools installed.

Frontend

ToolVersionNotes
Visual Studio CodelatestFree, lightweight code editor. Download.
Node.js20.11.1If you have a different version installed, use nvm to switch between versions without conflicts.
npm10.2.4Comes with Node.js.
Next.js14.1.0Installed automatically via npm install.

Backend

ToolVersionNotes
Visual Studio2022Community edition is fine. Download.
.NET8.0The framework runs on .NET 8.

Database

ToolNotes
SQL Server Management StudioUsed to restore the starter .bacpac and inspect tables. Download.
Mac OS or Linux users

Visual Studio is not supported on Mac OS or Linux. Follow the Mac OS / Linux Setup which uses VS Code, the .NET CLI, and Docker-hosted SQL Server instead.


Ready to Start?

Head to Configuring Your First View to start building.