Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/copilot_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# GitHub Copilot Instructions

This repository is responsible for hosting the Culinary Command app.

## .NET, C#, and Coding Standards

### Version
- Specifically target dotnet9.0 (`9.0.0`)

### Naming Conventions
Follow general naming conventions used in .NET/C#/Blazor
- Classes, interfaces, enums, structs, DTOs, models, constants, methods, namespaces, properties: `PascalCase`
- Local variables, method parameters: `camelCase`
- Private fields: `_camelCase`



### Documentation
- Do NOT add docstrings to any code.
- DO NOT add any inline comments to any code.
- Code should be self-documenting through clear naming and structure.


### Code Style
- A singular code line should not surpass 100 characters.
- Use 4 spaces for indentation
- Use double quotes for indentation


### Response Requirements
- When asked to provide an example, structure the response in a clear, organized, and understandable way.
- When referring to a file, list the exact location of where the file is located.


### Testing


### Dependencies


### Requirements
- Do NOT hardcode secrets, API keys, or credentials.
-

5 changes: 1 addition & 4 deletions CulinaryCommandApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,14 @@ string MaskPwd(string s)
app.UseExceptionHandler("/Error", createScopeForErrors: true);
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
app.UseHttpsRedirection();
}

// Temporarily disable HTTPS redirect for development
//app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAntiforgery();

app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();

// Simple health endpoint for load balancers/CI checks
app.MapGet("/health", () => "OK");

app.Run();
1 change: 1 addition & 0 deletions CulinaryCommandApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"ConnectionStrings": {
"DefaultConnection": ""
},
"https_port": 443,
"Logging": {
"LogLevel": {
"Default": "Information",
Expand Down
Loading