A .NET 8 Razor Pages project for building web applications.
This project demonstrates a simple Todo application built with ASP.NET Core Razor Pages. It follows the Model-View-Controller (MVC) pattern with a clear separation of concerns between the model, service, and presentation layers.
The application is structured into three main layers:
-
Model Layer (
Models/folder)- Contains data models such as
TodoItem - Defines the structure of data entities
- Contains data models such as
-
Service Layer (
Services/folder)- Contains business logic in
TodoService - Handles data operations and interactions with the data store
- Contains business logic in
-
Presentation Layer (
Pages/folder)- Contains Razor Pages for the UI
- Includes pages for displaying, creating, editing, and deleting todo items
To run this application locally:
- Clone the repository
- Navigate to the project directory
- Run
dotnet restoreto restore dependencies - Run
dotnet runto start the development server
To run the tests:
- Navigate to the project directory
- Run
dotnet testto execute all tests
To build the project:
- Navigate to the project directory
- Run
dotnet buildto compile the application
- Use the web interface to manage todo items
- The application provides CRUD (Create, Read, Update, Delete) functionality for todo items
- All data is stored in-memory for demonstration purposes