- Basic MVC structure with HomeController - Bootstrap 5 and jQuery included - CLAUDE.md for AI assistant guidance Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
80 lines
2.2 KiB
Markdown
80 lines
2.2 KiB
Markdown
# CLAUDE.md
|
|
|
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
|
|
## Project Overview
|
|
|
|
ImageProcessor is an ASP.NET Core 10.0 MVC web application. The project is currently a minimal scaffold with standard MVC structure.
|
|
|
|
## Development Commands
|
|
|
|
### Build and Run
|
|
```bash
|
|
# Build the project
|
|
dotnet build
|
|
|
|
# Run the application
|
|
dotnet run
|
|
|
|
# Run with hot reload
|
|
dotnet watch run
|
|
```
|
|
|
|
The application runs on:
|
|
- HTTPS: https://localhost:7123
|
|
- HTTP: http://localhost:5013
|
|
|
|
### Testing
|
|
```bash
|
|
# Run tests (when test project is added)
|
|
dotnet test
|
|
|
|
# Run tests with detailed output
|
|
dotnet test --logger "console;verbosity=detailed"
|
|
|
|
# Run tests in a specific project
|
|
dotnet test path/to/test.csproj
|
|
```
|
|
|
|
### Other Commands
|
|
```bash
|
|
# Restore dependencies
|
|
dotnet restore
|
|
|
|
# Clean build artifacts
|
|
dotnet clean
|
|
|
|
# Format code
|
|
dotnet format
|
|
```
|
|
|
|
## Architecture
|
|
|
|
This is a standard ASP.NET Core MVC application with the following structure:
|
|
|
|
### MVC Pattern
|
|
- **Controllers/**: Contains MVC controllers (currently HomeController with Index, Privacy, and Error actions)
|
|
- **Models/**: View models and domain models (currently ErrorViewModel)
|
|
- **Views/**: Razor views organized by controller
|
|
- **Views/Home/**: Home controller views (Index, Privacy)
|
|
- **Views/Shared/**: Shared layouts and partials (_Layout, Error, _ValidationScriptsPartial)
|
|
- **_ViewImports.cshtml**: Global view imports
|
|
- **_ViewStart.cshtml**: View startup configuration
|
|
|
|
### Configuration
|
|
- **Program.cs**: Application entry point with service configuration and middleware pipeline
|
|
- **appsettings.json**: Base application settings
|
|
- **appsettings.Development.json**: Development-specific settings
|
|
- **Properties/launchSettings.json**: Launch profiles for development
|
|
|
|
### Key Architectural Details
|
|
- Uses .NET 10.0 with nullable reference types enabled
|
|
- Implicit usings are enabled
|
|
- Default MVC routing: `{controller=Home}/{action=Index}/{id?}`
|
|
- Static assets are served via `MapStaticAssets()` and `WithStaticAssets()`
|
|
- HSTS is enabled in non-development environments
|
|
- HTTPS redirection is configured
|
|
|
|
### Dependencies
|
|
The project currently has no additional NuGet packages beyond the Microsoft.NET.Sdk.Web SDK.
|