Skip to content

ricardoalcocer/electron_scaffolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron Scaffolding

Empty Electron MVC-style project that provides a basic structure for native cross-platform desktop apps. The project uses PhotonKit for Mac-style UI and Metro-UI-CSS for Windows-style UI.

Usage

  1. Clone this repo by running git clone [email protected]:ricardoalcocer/electron_scaffolding.git
  2. Go to newly created folder cd electron_scaffolding
  3. Install dependencies by running npm install
  4. Start the project by running npm start
  5. Install asar npm install -g asar (to pack the source code into a single file)
  6. Package the app by running npm run package-mac

Project structure

📁 assets
    📁 css
    📁 fonts
    📁 icons
        📁 darwin
            📄 icon.icns
        📁 png
            📄 16x16.png
            📄 1024x1024.png
        📁 win32
            📄 icon.ico
📁 bindings                         Code for view/controller binding
    📄 mainwindow.js
📁 controllers
    📄 mainwindow.js                Controller code
📁 lib                              Shared libraries
    📄 appfunctions.js                
📁 menus
    📄 mainwindow.js                Menu files
📁 views
    📁 darwin                       HTML and CSS for App Windows
        📄 mainwindow.html
        📄 mainwindow.css
    📁 linux
        📄 mainwindow.html
        📄 mainwindow.css
    📁 win32
        📄 mainwindow.html
        📄 mainwindow.css
📄 .gitignore
📄 main.js                          Main bootstrap script
📄 package.json
📄 README.md

Useful tools

About

Build cross-platform (Mac, Win, Linux) Desktop apps the easy way

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published