CURENT / agvis

Geo-visualization for energy system
https://ltb.curent.org
GNU General Public License v3.0
7 stars 5 forks source link

Web Application #23

Closed jinningwang closed 6 months ago

jinningwang commented 1 year ago

08/30/2023

We can have a different way to implement the online web application of AGVis, because we have both a server and a domain to deploy the web application.


03/20/2023

Create an online web application of AGVis using Pyodide, some examples: MATPOWER App by Richard Lincoln Pyodide Doc

jinningwang commented 1 year ago

AGVis is developed with JavaScript and served through the python library HTTP. server. However, http.server is not recommended for production. It only implements basic security checks.

Not sure if it is necessary to transfer to other web frameworks such as Flask, Django, or Pyramid.

jinningwang commented 1 year ago

Previously I developed a simple code interface to wrap the command line usage of agvis, and more details can be found in agvis run.

If we do switch to another framework, we might need to ensure the compatibility of this command line usage.

zmalkmus commented 1 year ago

When changing to the flask framework, I made sure that the agvis run command maintained full functionality with the exception of the static parameter, as flask only accepts static files from a specific directory.

jinningwang commented 9 months ago

This development issue can be separated as three stages.

  1. Host AGVis online and enable topology visualization with built-in or user upload file.
  2. Enable dynamic animation in the online application.
  3. Maybe enable fully featured AGVis in the web application.