/electron-env-sandboxing

A PoC to showcase environment sandboxing with Electron

Primary LanguageJavaScript

Electron Env Sandboxing PoC

image

Setting up the project

  • Clone the repository
  • Install the dependencies
    $ npm install
    
  • Start the Electron App.
    $ npm start
    

This will start the client app via webpack-dev-server on port 3000 and the electron app which loads http://localhost:3000 on load.

Note

There is a tiny timing issue that I haven't been able to solve yet. When the electron app boots, it loads a blank page since the webpack-dev-server build has not completed. Just refresh the app page to fetch the built react app.

Setting a Session ID to enable a Logged In session

In evaluations.js, you can add a session token to the sessionId field to start the evaluation with that session ID set.

image