A simple calculator application meant for personal learning of Electron.js. This project builds on the starting point provided by electron-vite.
The project is intended to gradually gain more features over time to facilitate my learning of Node, Electron, and general software development.
For documentation files, kindly refer to:
To build or run the application from source, refer to:
- Running the application in development-mode from source
- Building the application for your local machine
- Working functionality for the 4 basic math operations computed on chromium front-end only
- Respond to keyboard inputs.
0-9input number values (both keyboard number pad and top row of keyboard)Backspace(delete on Mac) - backward deleteDelete- forward deletec- clear the display+for add-for subtract*for multiply/for divideEnterto evaluate expression (same action as the on-screen=button)←to move cursor leftward→to move cursor rightward
- Honor text cursor placement:
- Navigate the cursor position via the
<and>key pad grid buttons. Backspace(Delete on Mac) - delete character on the left of the cursorDelete- delete character on the right of the cursor0-9keys - number values get inserted at the text cursor position.
- Navigate the cursor position via the
- UI Styling mimicking neobrutalism
- Light Mode / Dark Mode
- Test cases using Vitest and Stories/Storybook
- General development flow for packaging to Windows, Mac, and Linux. (prefer to distribute via flathub)
- Make licenses of packages I've depended on accessible to the user
- Create a Node script to automatically list direct and indirect dependency licenses using
pnpm licenses list --json > licenses.json. The script should then copy out all available licenses into alicencesfolder. - Create a dedicated window for visually displaying the package licenses and making them accessible to the user.
- Create a Node script to automatically list direct and indirect dependency licenses using
Copy the repository to your local computer:
git clone https://github.com/julillermo/Some-CalculatorNavigate to the folder and install the dependencies:
# using npm
npm install
# using pnpm
pnpm installRun the dev server with the following commands:
# using npm
npm run dev
# using pnpm
pnpm run devCopy the repository to your local computer:
git clone https://github.com/julillermo/Some-CalculatorNavigate to the folder and install the dependencies:
# using npm
npm install
# using pnpm
pnpm installBuild the application with the following command
# using npm
npm run build:linux
# using pnpm
pnpm run build:linux- Only the linux AppImage has been tested in my development at the moment
- You're welcome to try the build targets by modifying the electron-builder config file before running the build scripts.