appium-dashboard-plugin icon indicating copy to clipboard operation
appium-dashboard-plugin copied to clipboard

Move server and plugin into separate modules so that the server can used in isolation

Open sudharsan-selvaraj opened this issue 2 years ago • 1 comments

Currently, the plugin and server are created as a single module and the plugin has direct access to the database.

The idea here is to move the server into a separate module and all logic related to maintaining the data in the database will be completely handled by the server. So the plugin will just format the appium command and call the respective endpoint in the server with the payload and the server will handle the logic of storing the data.

By doing this way, users can run the server in any centralized server of their choice or even in their local machine. while starting the plugin we will pass the server endpoint and access token to authenticate the API.

Since the server is centralized, we can create the same variation of plugin for other automation tools like selenium/webdriver io/cypress and keep the server untouched.

@sbalaji1192 thoughts?

sudharsan-selvaraj avatar Nov 16 '21 03:11 sudharsan-selvaraj

@sudharsan-selvaraj yeah. makes sense. This will also be helpful when we want to host the dashboard in the cloud.

sbalaji1192 avatar Nov 16 '21 09:11 sbalaji1192