Skip to content

An Electron app with basic UI that logs in on a website for you and does some specified task. Originally made for forgetful authors that want to upload chapters to RRL regularly.

Notifications You must be signed in to change notification settings

nattyrice/web_helper

 
 

Repository files navigation

web_helper

Development Workflow

  1. Open two terminals at the project's root directory
  2. In the first terminal(t1) run this command: npm run watch
  3. In the second terminal(t2) run this command: npm run dev

At this point, t1 should be watching all the source code and rebundling everything into the dist/ directory.

t2 should be watching dist/ for changes and live-reload both the main process and the renderer process automatically.

IPC Communication

For IPC I chose to use EipHop. It is a nice, convenient, little rigging for a fetch-like requests made from the renderer to the main process.

You can see an example of its use here.

I have set up a few actions that can be called already in the api/ directory.

Anything set up in there and added to the api/index.ts file properly should automatically be exposed for use in the renderer process.

You can see examples of how the renderer can use the actions in the SandboxView and the LoginView components.

About

An Electron app with basic UI that logs in on a website for you and does some specified task. Originally made for forgetful authors that want to upload chapters to RRL regularly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 75.4%
  • JavaScript 22.1%
  • HTML 1.6%
  • CSS 0.9%