Project Templates
Cotomy Razor Pages Project Template
Stop rebuilding authentication, CRUD, and project structure for every business app — start with the foundation already in place.
Standard provides a lightweight foundation with a UI framework and authentication hook. Professional adds Cookie authentication, CRUD templates, and EF Core for a production-ready architecture. Both editions are built on Cotomy OSS as the core.
Design Philosophy
Built for apps that don't need a SPA
Not every business system needs a full front-end framework. Internal tools, CRUD-heavy workflows, and admin screens are a natural fit for server-rendered pages. Cotomy is designed for this — a Razor Pages foundation with structured TypeScript, per-screen architecture, and predictable patterns that stay maintainable as the project grows.
Editions
Which Edition Fits Your Project?
Most projects should choose Professional — it includes everything needed to ship a working business app from day one. Standard is for custom backend cases.
UI only — bring your own backend
Cotomy Standard
UI Framework + Page Architecture + Authentication Hook. Ideal for projects that add UI to an existing backend, or when you want to design your own authentication and data layer.
What's included
- CotomyPageController — screen lifecycle management
- Form / Renderer — two-way binding form infrastructure
- Dialog / ModalDialog / SidePanel components
- ProcessingArea — async operation display
Full business app starter
Cotomy Professional
Everything in Standard, plus Cookie authentication, CRUD templates, and EF Core integration — a production-ready architecture. Start with login, CRUD, and a working database from day one.
What's included
- Everything in Standard
- Cookie authentication (HttpOnly / Secure / SameSite / Sliding Expiration)
- Login and logout flow
- Role-based authorization + IPermissionChecker
Edition selection happens on the store page.
Go to store and choose your editionComparison
Feature Comparison
| Feature | Standard | Professional |
|---|---|---|
| UI Framework (Form / Dialog / SidePanel)Two-way binding forms, modal dialogs, side panels, and async display areas | ✓ | ✓ |
| TypeScript / webpack integrationPer-page entry point bundling with full TypeScript compilation | ✓ | ✓ |
| Authentication hook (IAuthorityUserProvider)Interface + DemoAuthProvider skeleton — plug in your own implementation | ✓ | ✓ |
| Cookie authentication (fully implemented)HttpOnly / Secure / SameSite / Sliding Expiration, fully wired | — | ✓ |
| Login UI / user management screenLogin / logout pages and User CRUD admin screen | — | ✓ |
| CRUD templates (Product / Order / User)List, detail, edit, and delete pages with pagination and filtering | — | ✓ |
| EF Core + SQL Server integrationCode-first DbContext, entity base class, and migrations | — | ✓ |
| Role-based authorization + Permission CheckerIPermissionChecker contract with role-based access control | — | ✓ |
| DTO contract pattern (Request / Response)Separate Request / Response DTOs decoupled from Entity classes | — | ✓ |
| Validation pipeline (unified error format)DataAnnotations + ApiMessage unified error response format | — | ✓ |
| Persistence architecture (Repository / Transaction / RowVersion)Repository pattern, transaction boundaries, and optimistic concurrency | — | ✓ |
Get Started
From Purchase to Running
The setup is designed so you can start building immediately after purchase.
- Choose an edition and purchase — open Cotomy Store and choose your edition.
- Extract the archive — unzip the downloaded template and open the folder in VS Code.
- Install dependencies — run
npm installanddotnet restorein the terminal. - Start the dev server — run
dotnet runto launch the app. Full setup instructions are in theREADME.mdbundled with the template.
For Cotomy OSS usage, see the Getting Started guide and the Reference documentation.
Requirements
Requirements
The templates require the following environment.
- OS: Windows 11 or later / macOS (Apple Silicon or Intel)
- .NET SDK 10
- Node.js 20 or later (includes npm)
- Git
- VS Code (recommended)
The Professional edition requires Docker for SQL Server — a docker-compose.sqlserver.yml is included. The dotnet ef CLI tool is also required for database migrations (dotnet tool install --global dotnet-ef).
Cotomy Razor Pages Project Template
Skip the boilerplate. Start with the right structure on day one.