Skip to content
Merged
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
60 changes: 59 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,62 @@ php artisan world-heritage:import-japanese-names --force

```bash
php artisan test
```
```

## Architecture Overview
```
[Browser]
┌─────────────────────────────────────────────────────────────┐
│ Frontend (world-heritage-frontend) │
│ React + TypeScript + Vite / TailwindCSS │
└─────────────────────────────────────────────────────────────┘
│ REST API (HTTP)
┌─────────────────────────────────────────────────────────────┐
│ Backend (world-heritage-api) / Laravel 11 │
│ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Presentation Layer │ │
│ │ Controller / FormRequest │ │
│ └───────────────────┬──────────────────────────────────┘ │
│ │ │
│ ┌───────────┴────────────┐ │
│ │ Write │ Read │
│ ▼ ▼ │
│ ┌───────────────┐ ┌─────────────────┐ │
│ │ Application │ │ Application │ │
│ │ UseCommand │ │ ListQuery │ │
│ └───────┬───────┘ └────────┬────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌───────────────┐ ┌─────────────────┐ │
│ │ Domain Layer │ │ QueryService │ │
│ │ UseCase │ │ DTO │ │
│ │ Entity │ └────────┬────────┘ │
│ │ ValueObject │ │ │
│ │ Repository │ │ │
│ └───────┬───────┘ │ │
│ │ │ │
│ ┌───────▼───────┐ │ │
│ │Infrastructure │ │ │
│ │ Eloquent │ │ │
│ │ Repository │ │ │
│ └───────┬───────┘ │ │
│ │ │ │
└──────────┼───────────────────────┼──────────────────────────┘
│ 一覧 / 詳細取得 │ キーワード検索
▼ ▼
┌─────────┐ ┌───────────┐
│ MySQL │◀─── ID ───│ Algolia │
│ (DB) │ │ (Search) │
└─────────┘ └───────────┘
```

## Related Repositories

| Role | Repository |
|---|---|
| Frontend | https://github.com/zigzagdev/world-heritage-frontend |
| Backend API | https://github.com/zigzagdev/world-heritage-api |
Loading