This is a simple Electron app that uses the WFM OAuth2 flow to authenticate with the WFM API v2
Disclaimer
I have no idea how to properly write Electron app, built this within a few hours, so don't expect anything fancy.
Feel free to send PR and fix whatever you want.
Contribute
⚠️ This app was tested only on Archlinux, so I don't know if it works on other OSes.
Basic knowledge of:
To understand auth flow, read about OAuth2 with PKCE
I purposefully didn't use any state management library, because I don't want to overcomplicate things.
But maybe we would add it in the future to make code more clean and better structured.
To build and run Electron app, i am using Electron Forge
Setup:
yarn installThen run the app in dev mode:
yarn startIf you need to debug something, use launch configs for Vscode.
To build the app, use
yarn make && yarn packageTo install into Archlinux system:
- Copy built deb pkg from
./out/make/deb/x64/wfm-app_0.0.X_amd64.debinto./aur/ - Edit
./aur/PKGBUILDand changepkgverto the current version - Lunch
makepkgin./aur/folder - If everything is okay, install it with
makepkg -i
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.