geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
499 stars 261 forks source link

admin GUI #728

Closed ksonda closed 10 months ago

ksonda commented 3 years ago

Is your feature request related to a problem? Please describe. Some users have difficulty configuring due to yml syntax issues, and the general length + complexity of the yml when many resources are configured.

Describe the solution you'd like A GUI to configure pygeoapi, perhaps just a simple HTML form, perhaps in React.

@webb-ben and I are pursuing this on our own to serve some organizations that have expressed interest. If there is interest in this being a core feature, can open a draft PR.

justb4 commented 3 years ago

+1 . My personal pref would be using VueJS over React. IMO the pygeoapi config structure could first be made more 'composable'/'loosely coupled', by allowing e.g. Collections configured as per-collection-file-yaml's in a directory. ldproxy, another OGC API server, has a 'manager' UI doing something similar with also a directory-based config convention: https://github.com/interactive-instruments/ldproxy/tree/master/ldproxy-manager

webb-ben commented 3 years ago

@justb4 If this is something that is wanted enough, I would be interested in implementing that sort of behavior for the config. Probably would make sense to happen in a different branch/issue that an admin GUI, right?

krishnaglodha commented 2 years ago

Hi @ksonda , I'm thinking of creating a config yml generator to help users use GUI form to generate files. Please let me know if you are working on it, otherwise I can then spin up an issue.

Thanks

ksonda commented 2 years ago

@webb-ben can you show where current draft and any feedback is? You're welcome to iterate on that or try a different implementation if you want. Our work on this is not immediate for the time being.

webb-ben commented 2 years ago

@krishnaglodha @ksonda cc: @tomkralidis

This is implemented in cgs-earth/pygeoapi:admin. Simultaneous to the GUI, working is being done to build out an admin api that is in line with OGC API - Features - Part 4.

krishnaglodha commented 1 year ago

HI @webb-ben , I cloned the repo and it's running but when I do /admin I'm getting error, can you please tell how can I access admin panel ?

webb-ben commented 1 year ago

@krishnaglodha Could you tell me the error you are getting? /admin should be redirecting to /login if credentials have not been provided.

I just rebased the branch and am able to get it running using this docker compose file.

tomkralidis commented 10 months ago

An admin API is now merged in master (#1137) which includes a simple UI.

An enhanced UI (my preference would be Vue.js) can be realized in as a separate project in a separate repository (basically an AJAX client).