sirix-web-frontend icon indicating copy to clipboard operation
sirix-web-frontend copied to clipboard

TreemapView with D3.js

Open JohannesLichtenberger opened this issue 6 years ago • 17 comments

In order to get an overview about the stored XML and JSON resources we might want to use space filling approaches for tree-structured data as for instancdd a TreeMap.

JohannesLichtenberger avatar Oct 05 '19 14:10 JohannesLichtenberger

Where can I find data to be displayed? Can you provide some endpoint?

ghost avatar Oct 05 '19 16:10 ghost

Hm, can you use dummy data for now? Simply JSON and XML :-)

JohannesLichtenberger avatar Oct 05 '19 16:10 JohannesLichtenberger

Or you could try to get the HTTP-server up and running using the docker-compose file in the bundle sirix-rest-api. Some documentation: https://sirix.io/rest-api.html

However, the binary content simply gets serialized as JSON or XML again, depending on the database type (what content is stored).

JohannesLichtenberger avatar Oct 05 '19 16:10 JohannesLichtenberger

ok, currently I am setting up keycloak via docker (according to README). The link you provided for documentation talks nothing about docker though. It would be great if you could build a single image, push it to the repository so that all the frontend (and backend of course) guys need to run just 1 command and they are up and running.

ghost avatar Oct 05 '19 16:10 ghost

Yes, I think the only thing missing in the docker-compose file is the realm data, which I have exported from my running Keycloak instance to provide a simple test configuration. Will do this next, but maybe tomorrow.

docker-compose up -d hopefully. Need to check this on my laptop at work. Here I have only Windows, but maybe Docker for Windows is now a bit better than a few years ago...

You can import it via the Keycloak web frontend however:

https://github.com/sirixdb/sirix/tree/master/bundles/sirix-rest-api/src/test/resources

JohannesLichtenberger avatar Oct 05 '19 16:10 JohannesLichtenberger

The databases are per default stored in $USER_HOME/sirix-data

JohannesLichtenberger avatar Oct 05 '19 16:10 JohannesLichtenberger

Oh and to keep you informed, simonholdorf from dev.to would like to switch to a Nuxt.js setup :-)

JohannesLichtenberger avatar Oct 05 '19 16:10 JohannesLichtenberger

Okay, so I will have to probably wait with all the tasks till he does the migration. Why did you decide to make a switch from SPA to serverside rendering? (just curious :) )

ghost avatar Oct 05 '19 16:10 ghost

I think preloading on the server adds a lot of value. Otherwise it's still a PWA, right? :-)

JohannesLichtenberger avatar Oct 05 '19 17:10 JohannesLichtenberger

With nuxt we'll combine the power of both worlds. It's built as a universal app where the initial HTML and other static content is rendered by the server but as soon as something happens in the client it will be handled as a SPA by Vue. This has great effects on performance, SEO

simhol avatar Oct 05 '19 19:10 simhol

I've already set it up the nuxt project with the state of this repo

simhol avatar Oct 05 '19 19:10 simhol

https://github.com/simhol/sirix-nuxt-frontend

If you like it we could integrate it into your repo. I hope i migrated everything - if not, just holla at me :)

simhol avatar Oct 05 '19 19:10 simhol

Very cool, thanks a lot. Regarding the structure: Can we split the view according to the latest PR?

https://github.com/sirixdb/sirix-web-frontend/tree/master/src

With dependency injection and have a look at the models, views... there's also a navigation bar component added :-)

JohannesLichtenberger avatar Oct 06 '19 03:10 JohannesLichtenberger

Then you could make a PR to integrate it, would be great :-)

JohannesLichtenberger avatar Oct 06 '19 03:10 JohannesLichtenberger

@MartinTuroci, we migrated :-)

JohannesLichtenberger avatar Oct 06 '19 15:10 JohannesLichtenberger

Good job guys. I am currently quite busy, hopefully will be able to have a look by the end of the week.

ghost avatar Oct 07 '19 14:10 ghost

Sounds great, have a nice week :-)

JohannesLichtenberger avatar Oct 07 '19 15:10 JohannesLichtenberger