Skip to content

Instantly share code, notes, and snippets.

@mariechatfield
Created December 11, 2018 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariechatfield/988fb989bc33c5ca596f0e436ccaa494 to your computer and use it in GitHub Desktop.
Save mariechatfield/988fb989bc33c5ca596f0e436ccaa494 to your computer and use it in GitHub Desktop.
Sequence Diagram Plain Text Descriptions
Sequence diagram of a user interacting with a server-side rendered site.
Three columns titled: User, Browser, Server.
First set of actions:
1. User opens /index.html
2. Browser gets /index.html
3. Server finds template at views/index.pug
4. Server fetches data for all emojis
5. Server builds index.html
6. Browser renders HTML
Second set of actions:
1. User clicks πŸŽ‰ link. Arrow to browser crosses a NEW PAGE boundary.
2. Browser gets /πŸŽ‰.html
3. Server finds template at views/emojis/show.pug
4. Server fetches data for πŸŽ‰ emoji
5. Server builds πŸŽ‰.html
6. Browser renders HTML
Sequence diagram of a user interacting with a single-page app.
Three columns titled: User, Browser, Server.
First set of actions:
1. User opens /index.html
2. Browser gets /index.html
3. Server returns public/base.html
4. Browser renders empty HTML
5. Browser gets /bundle.js
6. Server returns public/bundle.js
7. Browser parses JavaScript
8. Browser fetches all emoji data for index route
9. Server returns all emoji data
10. Browser JavaScript adds IndexView with data to page
Second set of actions:
1. User clicks πŸŽ‰ link
2. Browser JavaScript changes URL to /πŸŽ‰
3. Browser fetches data for πŸŽ‰
4. Server returns data for πŸŽ‰
5. Browser JavaScript replaces IndexView with EmojiView
Sequence diagram of a user interacting with a static site.
Three columns titled: User, Browser, Server.
First set of actions:
1. User opens /index.html
2. Browser gets /index.html
3. Server finds file at public/index.html
4. Browser renders HTML
Second set of actions:
1. User clicks πŸŽ‰ link. Arrow to browser crosses a NEW PAGE boundary.
2. Browser gets /πŸŽ‰.html
3. Server finds file at public/πŸŽ‰.html
4. Browser renders HTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment