3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VScode/PlantUMLでER図を書く

Last updated at Posted at 2019-09-09

VSCodeをインストールしていない人はこちら
https://code.visualstudio.com/

javaをインストールしていない人はこちら
https://www.java.com/ja/

macにgraphvizをインストールする

$ brew install graphviz

※インストールに失敗した場合
brew doctorを打つと、解決方法を教えてくれる。

PlantUML のインストールする

1.Visual Studio Code を起動する
2.下記のアイコンをクリックし、PlantUMLを検索しインストールする
スクリーンショット 2019-08-29 9.59.49.png

動作確認

拡張子 .pu で新規ファイルを作成する

test.pu
@startuml 

package "testアプリ" {
    entity "ユーザー" {
      + userID [PK]
      ==
      email
      password
      name
    }
}

@enduml

"Alt + D"でプレビューを表示する
スクリーンショット 2019-09-10 10.37.41.png
このように表示されます(^ ^)

※PlantUMLの基本的な書き方

こちらを参考にしました
https://qiita.com/ogomr/items/0b5c4de7f38fd1482a48

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?