Giter Site home page Giter Site logo

shiyunlai / angular2-electron-quickstart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhongzf/angular2-electron-quickstart

0.0 2.0 0.0 49 KB

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

TypeScript 52.44% JavaScript 10.70% HTML 13.13% CSS 23.73%

angular2-electron-quickstart's Introduction

Angular 2 + Electron Quick start

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

Usage for desktop with Electron

Problem

=========

问题:运行 npm start 或者 npm run web 时报错

/bin/sh: scss: command not found

解决:安装 sass

$sudo gem install sass
$sass -v
Sass 3.4.24 (Selective Steve)

之后再执行 npm start 或 npm run web 成功启动!

angular2-electron-quickstart's People

Contributors

shiyunlai avatar zhongzf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.