Skip to content

Commit

Permalink
illustrations
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Sep 6, 2024
1 parent 801f233 commit bf9f033
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions examples/official-site/performance.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;

select 'hero' as component,
'Performance in SQLPage' as title,
'SQLPage applications are fast, because they are server-side rendered, and begin streaming the page to the browser while the database is still processing the request.' as description,
'performance.webp' as image;

select 'text' as component,
'
# Performance of SQLPage applications
Expand Down
Binary file added examples/official-site/performance.webp
Binary file not shown.
11 changes: 8 additions & 3 deletions examples/official-site/safety.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;

select 'hero' as component,
'SQLPage''s security guarantees' as title,
'SQLPage prevents common web vulnerabilities such as SQL injections and XSS attacks by default.' as description,
'safety.webp' as image;

select 'text' as component,
'
# SQLPage''s security guarantees
SQLPage is a tool that allows you to create a full website using only SQL queries, and render results straight from the database to the browser.
Most programmers, hearing this, will immediately think of the security implications of this model.
Expand All @@ -18,7 +21,9 @@ SQLPage websites are *server-side rendered*, which means that the SQL queries st
where SQLPage is installed.
The results of these queries are then rendered to HTML, and sent to the user''s browser.
A malicious user cannot run arbitrary SQL queries on your database, because SQLPage does not expose your database to the internet.
A malicious user cannot run arbitrary SQL queries on your database, because SQLPage
does not expose your entire database to the internet, only the results of
your prepared queries, rendered as web pages.
## Protection against SQL injections
Expand Down
Binary file added examples/official-site/safety.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 6 additions & 1 deletion examples/official-site/your-first-sql-website/index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ end);
SELECT 'hero' as component,
'Your first SQL Website' as title,
'Let''s create your first website in SQL together, from downloading SQLPage to connecting it to your database, to making a web app' as description,
'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Backlit_keyboard.jpg/1024px-Backlit_keyboard.jpg' as image,
case $os
when 'linux' then 'get_started_linux.webp'
when 'macos' then 'get_started_macos.webp'
when 'windows' then 'get_started_windows.webp'
else 'get_started.webp'
end as image,
'https://github.com/lovasoa/SQLpage/releases'|| case
when $os = 'windows' then '/latest/download/sqlpage-windows.zip'
when $os = 'linux' then '/latest/download/sqlpage-linux.tgz'
Expand Down
Binary file not shown.

0 comments on commit bf9f033

Please sign in to comment.