Skip to content

Commit

Permalink
add links & simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
xerosanyam committed Mar 22, 2024
1 parent 7c5200e commit 73e0b78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions docs/1. stack.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Which stack

I played around with nextjs, nuxt, htmx. Svelte was the only framework, that let me buid web apps that could work without any js. I also did a perf test and found sveltekit great out of the box.
I played around with nextjs, nuxt, htmx.
Svelte was the only framework, that let me buid web apps that could work without any js. [why is it important](https://jakearchibald.com/2013/progressive-enhancement-still-important/).
I also did a perf test and found sveltekit great out of the box.

## HTMX

HTMX requires JS. HTMX requires backend to reply in a certain way (html)
HTML requires alpine for more User Interactivity
HTMX requires JS.
Our app will be interactive. For that need, HTMX doesn't look self sufficent. It requires alpine/likes.

## Nextjs

Expand Down
6 changes: 3 additions & 3 deletions docs/3. auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ It has implemented best practices, and we don't want to do what's already done.
1. pass username, password to backend
2. validate. then pass to supabase service either via api call or supabase-js(wrapper over api)
3. auth service authenticates and replies back with jwt token
4. Generally apps store this token in localStorage and use with subsequent requests
5. But there is a problem here - localStorage works only when JS is enabled
6. Therefore we need to set token in cookie. which requires ssr
4. Generally apps store this token in localStorage/cookie and use with subsequent requests
5. For this app we can't use localStorage, because it works only when JS is enabled & [also](https://www.rdegges.com/2018/please-stop-using-local-storage/)
6. Therefore we need to set token in cookie.

0 comments on commit 73e0b78

Please sign in to comment.