239 sats \ 1 reply \ @dolu 18 Jun 2022 \ on: Ask SN: Best modern, easy, LN-friendly front-end? bitcoin
It's an hard question, there is a lot of solutions and there isn't a "LN-friendly front end framework".
Firstly, do you want to build an API/Frontend stack or a more classical MVC stack? This simple question can determine if you need to learn a frontend framework like vue, react or any other JS front end framework.
For example, you can do "MVC" with Django (a web framework for python). I don't know python neither django, but I know it provides you a view rendering engine.
If you prefer to work with an API and a JS frontend framework, I think (and it's personal) Vue.js is a good option. It's easy to learn and fun. There is also a SSR option using Nuxt.js (it's a framework on top on Vue.js), but it's a little bit more advanced.
To conclude, keep in mind there is no better front end framework for LN stuff. Since your app run in your browser, everything you can do in JS can be done with any frontend framework (or view engine in case of MVC stuff)
I hope it will help you in your choice
It does help, thank-you very much. Because there is no "right" choice, it means there is no "wrong" answer. That in and of itself is signal. I can pick a path optimizing for other criteria.
I did some searching based on your input, to check the resources out there for LN. Here are my notes so far (maybe they will help somebody else).
Lightning Community
TIL there is a community hub for building on LN with a Guide. And they have a javascript and python sections.
Awesome Lightning
Bit old, this Coindesk-Lightning example app is all python, but also used Django targeting Heroku.
Django
The community mentioned above has a guide from 2022
Vue.js
Next.js
I'm tempted to explore using this, just because the stacker.news repo exists and I can reason about the app's architecture & example. Plus, maybe it might become easier for me to contribute.
reply