SlideShare a Scribd company logo
1 of 26
Download to read offline
PlantUML
https://plantuml.com/ja/
by yuki.ohnaka@no4 1
自己紹介
yuki ohnaka
株式会社ナンバーフォー
Front-end engineer
Server-side engineer
Native-App engineer
Vue / React / TypeScript / Java / PHP /
Kotlin / Swift / Python / Docker / Ansible ...
Qiita / Zenn
by yuki.ohnaka@no4 2
PlantUML is...
シンプルなテキストファイルでUML が書ける
色々な用途のダイアグラムに対応している
UML以外にも色々な図に対応している
画像ファイル(png/svg)として出力ができる
by yuki.ohnaka@no4 3
対応しているダイアグラム
by yuki.ohnaka@no4 4
シーケンス図
@startuml

Alice -> Bob: Authentication Request

Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request

Alice <-- Bob: another authentication Response

@enduml

Ref
by yuki.ohnaka@no4 5
ユースケース図
@startuml

User -> (Start)

User --> (Use the application) : A small label

:Main Admin: ---> (Use the application) : This isnyet anothernlabel

@enduml

Ref
by yuki.ohnaka@no4 6
クラス図
@startuml

class Car

Driver - Car : drives >

Car *- Wheel : have 4 >

Car -- Person : < owns

@enduml

Ref
by yuki.ohnaka@no4 7
アクティビティ図
@startuml

start

repeat :foo as starting label;

:read data;

:generate diagrams;

backward:This is backward;

repeat while (more data?)

stop

@enduml

Ref
by yuki.ohnaka@no4 8
コンポーネント図
@startuml

DataAccess - [First Component]

[First Component] ..> HTTP : use

@enduml

Ref
by yuki.ohnaka@no4 9
配置図
@startuml

node ノード1

node ノード2

node ノード3

node ノード4

ノード1 -- ノード2 : ラベル1

ノード1 .. ノード3 : ラベル2

ノード1 ~~ ノード4 : ラベル3

@enduml

Ref
by yuki.ohnaka@no4 10
ステート図
@startuml

[*] --> State1

State1 --> [*]

State1 : this is a string

State1 : this is another string

State1 -> State2

State2 --> [*]

@enduml

Ref
by yuki.ohnaka@no4 11
タイミング図
@startuml

concise "ユーザ" as WU
scale 100 as 50 pixels

@WU

0 is 待機

+500 is ok

@enduml

Ref
by yuki.ohnaka@no4 12
ダイアグラム以外にも
by yuki.ohnaka@no4 13
fruit Apple
size Large
color Red
nest k e y value
JSONデータ
@startjson

{

"fruit":"Apple",

"size":"Large",

"color":"Red",

"nest": {

"key": "value"

}

}

@endjson

Ref
by yuki.ohnaka@no4 14
fruit Apple
size Large
color Red
nest k e y value
YAMLデータ
@startyaml

fruit: Apple

size: Large

color: Red

nest:

key: value

@endyaml

Ref
by yuki.ohnaka@no4 15
d m z
210.x.x.x/24
internal
172.x.x.x/24
210.x.x.1
172.x.x.1
w e b 0 1
d b 0 1
ネットワーク図
@startuml

nwdiag {

network dmz {

address = "210.x.x.x/24"

web01 [address = "210.x.x.1"];

}

network internal {

address = "172.x.x.x/24";

web01 [address = "172.x.x.1"];

db01;

}

}

@enduml

Ref
by yuki.ohnaka@no4 16
Entity01
e1_id : number «generated»
name : text
Entity02
e2_id : number «generated»
e1_id : number «FK»
ER図
@startuml

entity "Entity01" as e01 {

*e1_id : number <<generated>>

--

*name : text

}

entity "Entity02" as e02 {

*e2_id : number <<generated>>

--

*e1_id : number <<FK>>

}

e01 ||..o{ e02

@enduml

Ref
by yuki.ohnaka@no4 17
ほかにも
ワイヤーフレーム- Ref
アーキテクチャ図- Ref
ガントチャート- Ref
マインドマップ- Ref
WBS図(作業分解図) - Ref
by yuki.ohnaka@no4 18
なぜPlantUMLなのか
テキストで書けるのでバージョン管理がしやすい
編集ツールに依存しない
自動レイアウト
by yuki.ohnaka@no4 19
PlantUMLのつらいところ
自動レイアウトが思い通りにならない
記法を覚えなくてはいけない
標準テーマがダサい
by yuki.ohnaka@no4 20
Live Demo
by yuki.ohnaka@no4 21
まとめ
色々な図に対応してるが、使いたいものだけ覚えて使えばいい
サクッとある程度の図が書ける
内部向け資料に向いている
テキストベース
エディタは何でもいい
バージョン管理しやすい
by yuki.ohnaka@no4 22
ご清聴ありがとうございました
by yuki.ohnaka@no4 23
おまけ
by yuki.ohnaka@no4 24
環境構築の一例①
Chrome Extension - PlantUML Viewer
by yuki.ohnaka@no4 25
環境構築の一例②
VSCode Plugin - PlantUML
VSCodeで始めるPlantUML生活
by yuki.ohnaka@no4 26

More Related Content

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

PlantUML