sirixdb / sirix-web-frontend

A web front-end for SirixDB based on Nuxt.js/Vue.js, D3.js and Typescript
https://sirix.io
17 stars 20 forks source link

TableView / Change the JavaScript code to TypeScript code #3

Closed JohannesLichtenberger closed 5 years ago

JohannesLichtenberger commented 5 years ago

We need to change the example JavaScript code to TypeScript code and then start work on getting the data from a running HTTP-Server via the Axios HTTP-Client for instance.

oznakn commented 5 years ago

If you mean migrating the file https://github.com/sirixdb/sirix-web-frontend/blob/master/src/views/TableView.vue from javascript to typescript, I can take it if it is okey for you.

JohannesLichtenberger commented 5 years ago

Yes, amazing :-) Thank you so much! I'm super new to the frontend dev sadly. So, I now first want to make myself a bit familiar with TypeScript... and I just struggled a bit with changing the code.

JohannesLichtenberger commented 5 years ago

Oh BTW would you recommend switching to Nuxt.js instead of "pure" Vue.js and Typescript?

oznakn commented 5 years ago

Actually, no. Nuxt.js is one of the amazing SSR frameworks but Vue.js is designed to be a client side rendering framework. For small apps yes, nuxt.js is awesome, but when the apps are starting to getting bigger, problems can occur. If you have thoughts about SEO, I can recommend you prerender.io, it is a very nice service for client side rendering frameworks.

JohannesLichtenberger commented 5 years ago

Ah thanks, but you should be able to open a specific database in the future, which needs OpenID-connect / authentication with Keycloak. Think of it as a front-end for a DBMS like MongoDB or PostgreSQL :-) so, no SEO required luckily.

JohannesLichtenberger commented 5 years ago

I mean SirixDB in comparison is a very lightweight database backend (also embeddable as a Java library), which implements versioning aspects at its core, to retain the version history of the resources.

oznakn commented 5 years ago

Wow, thats interesting, then maybe Nuxt can be used for this situation, probably some research needed.

JohannesLichtenberger commented 5 years ago

Hm, but I think the whole project might grow over time and I'd love to include interactive D3.js visualizations in order to compare very big resources (XML or JSON) stored in a binary encoding. Certainly we can only query for the interesting fragments using more or less XQuery (Basically more or less JSONiq) to query both database types. However, there's plenty of optimization potential in rewriting queries to use user defined index-structures and a lot of statistical stuff which SirixDB stores.

JohannesLichtenberger commented 5 years ago

Guess endless possibilities to work on as always regarding SirixDB ;-)