GithubHelp home page GithubHelp logo

verdecchia / angular2-electron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joaogarin/angular-electron

0.0 2.0 0.0 351 KB

Electron app running with angular2 and webpack

JavaScript 53.82% TypeScript 37.16% CSS 2.66% HTML 6.37%

angular2-electron's Introduction

Angular 2 electron app featuring webpack

A working demo of electron with angular2 using Webpack, ngrx and material2

This is a demo of oauth with github using angular 2 and electron. It uses redux to manage state. You should create a config file as following :

{
    "github": {
        "client_id": "yourclientID",
        "client_secret": "yoursecretkey",
        "scopes": [
            "user:email",
            "notifications"
        ]
    }
}

and place this file inside the "app" folder.Dont use this in production as for production you should have a safe server side URI and not have your secret key in the app folder.

When running it authenticates the user and goes to a page showing the username received from the authentication oauth workflow.

Run the example

$ npm install
$ npm run build
$ npm run watch
$ npm run electron

Packaging

The app has support for packaging using 'electron-packager'

$ npm run package

Will run the package for OSX. You can also provide additional options to the package command such as

  • --name : The package name
  • --all : Will packaget the application to all the platforms
  • --arch : Arches to be provided
  • --icon : The icon for the app

License

MIT

angular2-electron's People

Contributors

fantasticfiasco avatar greenkeeper[bot] avatar joaogarin 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.