svonix icon indicating copy to clipboard operation
svonix copied to clipboard

Guides for SPA and LiveView equivalent features

Open Eiji7 opened this issue 2 years ago • 0 comments

Hi, hope you remember our talk on Elixir forum over year ago.

The only reason for not trying svelte yet was missing SPA guide with Phoenix backend.

Here are possible interesting points:

  • [ ] Generating a basic Phoenix app - since we do not need lots of Phoenix stuff, like controller, layout, template and view, so maybe we should even have a simple plug for rendering basic HTML with svelte usage
  • [ ] An example of loading extra svelte component after some event (like click) as an example of fetching extra code only when needed
  • [ ] Mention all svelte router libraries especially those that do not depend on hashtags (#) in url
  • [ ] svonix and JavaScript i.e. is node needed when we have Phoenix server and node vs esbuild (currently used in Phoenix apps)
  • [ ] using phoenixjs for connecting with channel - maybe simplest chat example (just broadcasting messages without storing them)
  • [ ] Phoenix.LiveView stream equivalent
  • [ ] File Uploads like guide
  • [ ] Elixir and CQRS with Svelte SPA minimal example using commanded and Phoenix channel API
  • [ ] Svelte SPA with pure JSON or GraphQL API using absinthe
  • [ ] A simple guide with links to helpful resources like svelte documentation or other howtos/guides i.e. how to continue after trying all above

What do you think about it? What other interesting topics could/should be covered in guides?

Eiji7 avatar Feb 17 '23 04:02 Eiji7