5.0 KiB
5.0 KiB
Architype Tutorial
We'll be building a simple system diagram. You can see the result here.
Start clean
- Select (clicking, touching, or with the arrow keys) the help box and delete it by pressing
d. You can bring it back any time by pressing? - Delete any other objects you've created by pressing
d
Nodes
- Create a node by pressing
n - Label it cloudflare then press Enter to finish editing
- Create another node by pressing
n - Label it frontend1 then press Enter to finish editing
- You should see both nodes in the diagram
Links
- Navigate to the cloudflare node
- Press
spaceto highlight the node - Navigate to the frontend1 node
- Press
spaceto highlight the node - Press
ito create a link - You should see a link between the nodes in the diagram
Deletion
There are now two copies of each node in the editor list: one standalone, and one inside the link. Architype treats these as references, so there's only one copy of each in the diagram. Let's clean that up.
- Navigate to the cloudflare standalone node (not the one inside the link)
Tip: Pressleftorescapeto exit the link sublist - Press
dto delete it - Do the same to the frontend1 standalone node
- Note that the diagram is unchanged
Another link
- Navigate to the frontend1 node inside the link
Tip: You can useleft/rightorenter/escapeto move in and out of sublists - Press
spaceto highlight the node - Press
ito create a link - Navigate to the blank second node in the link
- Label it backend1
- Note the new node and link in the diagram
Groups
- Press
escaperepeatedly to navigate to the top level and clear highlighting - Highlight one frontend1 and one backend1 node (one of each, any will do)
- Press
gto create a group - Note the outline and physical grouping in the diagram
Labels
- While in the group sublist, press
ato create a label - Set the content to
us-east1 - Note the label text on the group in the diagram
- Navigate to the cloudflare -> frontend1 link
- Add a label with the content
HTTPS - Note the label text on the link in the diagram
- Label the frontend1 -> backend1 link gRPC
Finishing up
- Create links:
- cloudflare -> frontend2 (labeled HTTPS)
- frontend2 -> backend2 (labeled gRPC)
- backend1 -> database
- backend2 -> database
- Create groups:
- frontend2 + backend2 (labeled us-west1)
You're done!
Try out u (undo), U (redo), and m (change theme). Then close & reopen the
site to see the peristent storage in action.