Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change web ui demo framework ? #906

Closed
sbernard31 opened this issue Oct 9, 2020 · 6 comments
Closed

Change web ui demo framework ? #906

sbernard31 opened this issue Oct 9, 2020 · 6 comments
Labels
bsserver Impact LWM2M bootstrap server demo Impact our demo (not libraries) server Impact LWM2M server

Comments

@sbernard31
Copy link
Contributor

Bootstrap server use Riot v3.4 and server use AngularJs v1.2, we should use same framework for both.

We have bad experience with angular.
Riot is not so bad but maybe not popular enough. Something more popular could make contribution easier.

VueJs is maybe a good candidate.

If/when we will do this migration, we should also rethink about the whole UI design and probably Rest API too.

@sbernard31 sbernard31 added server Impact LWM2M server demo Impact our demo (not libraries) bsserver Impact LWM2M bootstrap server labels Oct 9, 2020
@dachaac
Copy link
Contributor

dachaac commented Nov 2, 2020

@sbernard31 About Vue -- I have done some react stuff but I don't see why vue.js could not be used. It is supposed to be a bit more lightweight. Only thing is that if one wants to do common components then one needs to do a bit more pondering how to build that in Leshan's code base.

Vue.js + Vue Router + BootstrapVue should be a good starting point in that path.

Bigger question is what kind of UI there should be. With those "modern" tools one can get quite nice UI with reasonable amount of time used.

If Leshan would provide more getting started solution then there could be one UI that you can configure things and then backend services for bootstrap and for server that eats common configs and device registry from same place. The thing here is where you want to draw the line 😁

@sbernard31
Copy link
Contributor Author

Vue.js + Vue Router + BootstrapVue should be a good starting point in that path.

Good to know 🙂

If Leshan would provide more getting started solution then there could be one UI that you can configure things and then backend services for bootstrap and for server that eats common configs and device registry from same place. The thing here is where you want to draw the line grin

My current feeling about this after several years on Leshan project :

  • demos are very attractive for new users,
  • demos facilitate kind of interoperability tests,
  • lot of users would like to directly use demo (which I try to not recommend ), even if in practice this is not really possible ...

But :

So not sure we are able to provide this kind of component. (E.g. by the past we start a kind of cluster server but we finally drop the idea)

Do you also feel that priority is more about core feature, follow standard and providing up to date demos ?
If yes, let's start on this.
If you think that priority is to provide this kind of component and/or you want/prefer to invest time on it, we should maybe talk about this in another issue ?

@dachaac
Copy link
Contributor

dachaac commented Nov 4, 2020

I believe most important part for Leshan is to match LWM2M specification as close as it is feasible.

I cannot spare time for that in November -- if nothing surfaces before Christmas time I may have opportunity to have a look. Feel free to get started if you want.

@sbernard31
Copy link
Contributor Author

@dachaac, I create a PR with a first try about using vuejs. See #977. My first feeling is pretty good.

@dachaac
Copy link
Contributor

dachaac commented Mar 1, 2021

@dachaac, I create a PR with a first try about using vuejs. See #977. My first feeling is pretty good.

I can have a look at it in weekend and play around it a bit.

@sbernard31
Copy link
Contributor Author

Vuejs + vuetify is now used for demo, old demo will soon be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bsserver Impact LWM2M bootstrap server demo Impact our demo (not libraries) server Impact LWM2M server
Projects
None yet
Development

No branches or pull requests

2 participants