Closed jinningwang closed 6 months 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.
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.
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.
This development issue can be separated as three stages.
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