Skip to content

Commit d23d9f4

Browse files
Built site for gh-pages
1 parent d86fd61 commit d23d9f4

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1c863cf9
1+
cb967068

docs/architecture.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<h2 id="toc-title">On this page</h2>
133133

134134
<ul>
135-
<li><a href="#architecture" id="toc-architecture" class="nav-link active" data-scroll-target="#architecture">Architecture</a></li>
135+
<li><a href="#data-flow" id="toc-data-flow" class="nav-link active" data-scroll-target="#data-flow">Data flow</a></li>
136136
</ul>
137137
</nav>
138138
</div>
@@ -158,13 +158,13 @@ <h1 class="title">Architecture</h1>
158158
</header>
159159

160160

161-
<section id="architecture" class="level2">
162-
<h2 class="anchored" data-anchor-id="architecture">Architecture</h2>
161+
<section id="data-flow" class="level2">
162+
<h2 class="anchored" data-anchor-id="data-flow">Data flow</h2>
163163
<p>This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.</p>
164164
<div class="quarto-figure quarto-figure-center">
165165
<figure class="figure">
166166
<p><img src="static/webapp_flow.png" class="img-fluid figure-img"></p>
167-
<figcaption>Webapp Flow</figcaption>
167+
<figcaption>Data flow diagram</figcaption>
168168
</figure>
169169
</div>
170170
<p>The advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side.</p>

docs/static/reset_flow.png

-1.59 KB
Loading

search.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@
6767
"href": "docs/architecture.html",
6868
"title": "Architecture",
6969
"section": "",
70-
"text": "This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.\n\n\n\nWebapp Flow\n\n\nThe advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side."
70+
"text": "This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.\n\n\n\nData flow diagram\n\n\nThe advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side."
7171
},
7272
{
73-
"objectID": "docs/architecture.html#architecture",
74-
"href": "docs/architecture.html#architecture",
73+
"objectID": "docs/architecture.html#data-flow",
74+
"href": "docs/architecture.html#data-flow",
7575
"title": "Architecture",
7676
"section": "",
77-
"text": "This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.\n\n\n\nWebapp Flow\n\n\nThe advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side."
77+
"text": "This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.\n\n\n\nData flow diagram\n\n\nThe advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side."
7878
},
7979
{
8080
"objectID": "docs/authentication.html",

sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
</url>
1515
<url>
1616
<loc>https://Promptly-Technologies-LLC.github.io/fastapi-jinja2-postgres-webapp/docs/architecture.html</loc>
17-
<lastmod>2024-11-19T20:26:21.009Z</lastmod>
17+
<lastmod>2024-11-19T21:37:01.245Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://Promptly-Technologies-LLC.github.io/fastapi-jinja2-postgres-webapp/docs/authentication.html</loc>
21-
<lastmod>2024-11-19T16:55:55.525Z</lastmod>
21+
<lastmod>2024-11-19T21:37:41.606Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://Promptly-Technologies-LLC.github.io/fastapi-jinja2-postgres-webapp/docs/customization.html</loc>

0 commit comments

Comments
 (0)