Phoenix as a backend for a solid js spa with authentication

Hello

I was having fun with LiveViews but now I need a more complex frontend solution. I love Solid. Thus I was wondering if there are any examples or guides on how to build a backend for a solid spa (or react) with authentication in phoenix?
Ideally phoenix would serve the bundle as well such that I can just throw the hole thing onto a server.

Cheers
Daniel

The Elixir Mentor has very good walk through of authentication api’s. But it’s basically just about issuing tokens and validating them, like in any other framework. Also you could consider using something like live_svelte or live_react ( really good options for solo dev), solid doesn’t have an integration yet, but you can easily integrate it your self or return solid components from js hooks, check out this article for more.

Best of luck!

3 Likes