learn-elixir
sveltekit-example
learn-elixir | sveltekit-example | |
---|---|---|
3 | 3 | |
1,589 | 155 | |
0.4% | - | |
5.5 | 0.0 | |
4 months ago | over 1 year ago | |
Elixir | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
learn-elixir
- Would you still pick Elixir in 2023?
-
Ask HN: What would be your stack if you are building an MVP today?
That looks like a fantastic resource, especially appreciate the update you've provided here https://github.com/dwyl/learn-elixir/issues/102
I'll definitely have to keep at it and play around more, thanks!
- Would you still pick Elixir in 2021?
sveltekit-example
-
Ask HN: What would be your stack if you are building an MVP today?
The DB connection to Supabase can be made where ever you want it to be. It’s just JavaScript.
In Node, a “module” is generally scoped to a file. So you make a db.ts file and export the instance you create and it functions basically as a singleton. One DB connection per user per session. SvelteKit let’s you choose where to put that. The first place you import it is when it instantiates.
Auth in SvelteKit is trickier than it should be, but there’s a really good technique that I recommend you follow: https://www.captaincodeman.com/re-creating-the-sveltekit-ses...
I believe he uses firebase in his example. But don’t just copy paste, try to understand what is actually happening and why he had to do this workaround. Once you understand how SSR actually works, things get a lot easier.
Stores are a way of storing state on the client side, but to do SSR Svelte has to use stores on its “backend”. The key thing to understand is that stores that are used for SSR are server wide and persistent so you can’t store user specific data in them. There’s a special spot for that kind of state called events.locals.
It’s probably the trickiest area of SvelteKit IMO. I hope they make it better.
-
How to call mongodb without using endpoints?
I recommend checking out Firebase. Was super easy to get started with for me. And here’s a really easy-to-follow example of using firebase auth with svelte
-
Svelte and Firebase auth question
I just started using firebase too, recommend using this example for inspiration, got me going pretty quick.
What are some alternatives?
create-t3-app - The best way to start a full-stack, typesafe Next.js app
sveltekit-discord-oauth-starter - Starter template for SvelteKit projects bundled with Discord OAuth2 base logic.
turbo - The speed of a single-page web application without having to write any JavaScript
vite - Next generation frontend tooling. It's fast!
wasp - The fastest way to develop full-stack web apps with React & Node.js.
pothos - Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
jetstream - Tailwind scaffolding for the Laravel framework.
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
django-idom - Django compatibility layer for ReactPy. [Moved to: https://github.com/reactive-python/reactpy-django]