update rules
This commit is contained in:
@@ -3,3 +3,5 @@ obj/
|
||||
/packages/
|
||||
riderModule.iml
|
||||
/_ReSharper.Caches/
|
||||
.idea/.idea.GymLogAI/.idea/indexLayout.xml
|
||||
.idea/.idea.GymLogAI/.idea/vcs.xml
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# AGENTS.md
|
||||
|
||||
Shared rules for all AI agents working in this repository.
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **.NET 10.0** — ASP.NET Core minimal APIs
|
||||
- **C#** — primary language
|
||||
- **Docker / Docker Compose** — containerization
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
# Build
|
||||
dotnet build
|
||||
|
||||
# Run (development)
|
||||
dotnet run --project GymLogAI.API/
|
||||
|
||||
# Run with HTTPS profile
|
||||
dotnet run --project GymLogAI.API/ --launch-profile https
|
||||
|
||||
# Docker Compose
|
||||
docker compose -f compose.yaml up --build
|
||||
```
|
||||
|
||||
No test project exists yet. When one is added, the command will be `dotnet test`.
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
GymLogAI.sln
|
||||
GymLogAI.API/
|
||||
Program.cs # entry point, minimal API endpoint registration
|
||||
appsettings*.json # environment-specific config
|
||||
Dockerfile # multi-stage build (SDK 10 → Runtime 10)
|
||||
compose.yaml # Docker Compose orchestration
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
- Minimal API pattern — endpoints registered directly in `Program.cs`
|
||||
- Ports: HTTP 5202 (local), HTTPS 7225 (local); 8080/8081 inside Docker
|
||||
- OpenAPI enabled via `Microsoft.AspNetCore.OpenApi`
|
||||
|
||||
## Conventions
|
||||
|
||||
- Keep endpoints in `Program.cs` until the project grows enough to warrant endpoint groups or controllers
|
||||
- Use records for DTOs
|
||||
- Follow existing `appsettings.json` / `appsettings.Development.json` split for environment config
|
||||
@@ -0,0 +1,11 @@
|
||||
# CLAUDE.md
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
> All shared rules (commands, architecture, conventions) live in [AGENTS.md](AGENTS.md) and apply here as well.
|
||||
|
||||
## Claude Code–Specific Notes
|
||||
|
||||
- This is a greenfield project — the `WeatherForecast` endpoint in `Program.cs` is a template placeholder and can be replaced entirely.
|
||||
- There is no database, auth, or domain layer yet; add these incrementally as features are defined.
|
||||
- REST Client test file: `GymLogAI.API/GymLogAI.API.http` — keep it updated when endpoints change.
|
||||
Reference in New Issue
Block a user