What
This pull request does not add new functionality to the app. It simply moves the logic of the api that was previously running in the renderer process to run in the main process.
Why
This is because in the renderer process I couldn't get to access the database from custom locations (e.g documents) other than the location from where the app was running.
How
By making use of inter-process-communication protocol for the renderer process to communicate with the main process
What This pull request does not add new functionality to the app. It simply moves the logic of the api that was previously running in the renderer process to run in the main process.
Why This is because in the renderer process I couldn't get to access the database from custom locations (e.g documents) other than the location from where the app was running.
How By making use of inter-process-communication protocol for the renderer process to communicate with the main process