Angular 2 + Electron Quick start

June 11, 2016 ยท View on GitHub

Same code base built on Angular 2 can run both web and desktop environment.

Angular

Angular is a development platform for building mobile and desktop web applications.

Repository: https://github.com/angular/angular

Electron

Build cross platform desktop apps with JavaScript, HTML, and CSS http://electron.atom.io

Repository: https://github.com/electron/electron

Usage

Usage for Web

# Clone this repository
git clone https://github.com/zhongzf/angular2-electron-quickstart.git

cd angular2-electron-quickstart

# Install development dependency
npm install

# Build and start web server and browser
npm run web

web

Usage for desktop with Electron


# Build and start Electron
npm start

desktop