Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.11 KB

electron-osx-calculator

This is my first Electron app, i just wanted to get my hands on with a very simple app. I created a simple OSX-like calculator

OSX Calculator

Stack

  • Electron
  • Angular
  • Express (for debugging and testing purposes)

Install

  • clone repo
  • cd path/to/repo
  • npm install
  • bower install
  • cd src/
  • npm install # install node_modules of the app itself

Run

  • cd /root/of/repo
  • npm start # launches the calculator

Develope/Debug

  • Test as Electron app, with DeveloperTools opened.
    • vim index.js
    • set DevelopmentMode = true
    • npm start
  • Test the app as webpage on a browser
    • from the repo root
    • node express.js
    • webapp should get up and running on port: 9000
    • change the port from express.js

Package

  • npm run package # see full script inside ./package.json -> scripts section
  • this should generate packages for Linux/OSX/Darwin to the root of the repo
  • you should be able to run the app from binaries as following
    • ./OSX-Calc-linux-x64/OSC-Calc