update rules

This commit is contained in:
2026-04-19 12:38:51 +03:00
parent 985d7e0afa
commit 2f7424d50f
3 changed files with 64 additions and 1 deletions
+3 -1
View File
@@ -2,4 +2,6 @@ bin/
obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
/_ReSharper.Caches/
.idea/.idea.GymLogAI/.idea/indexLayout.xml
.idea/.idea.GymLogAI/.idea/vcs.xml
+50
View File
@@ -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
+11
View File
@@ -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 CodeSpecific 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.