Coder Social home page Coder Social logo

duyquoc / angular2-o365-desktop-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cecildt/angular2-o365-desktop-app

0.0 2.0 0.0 620 KB

Desktop application using Electron, Angular 2 and Office 365.

License: MIT License

HTML 25.11% JavaScript 14.32% TypeScript 60.57%

angular2-o365-desktop-app's Introduction

angular2-O365-desktop-app

Desktop application using Electron, Angular 2, Material Design Lite and Office 365 (Microsoft Graph API).

Application Demo

Getting started

Install dependencies

npm install

To build and watch for changes

npm run watch

Run application

npm start

Debug Electron using Devtron

`

// Run the following from the Console tab of your app's DevTools

require('devtron').install()

// You should now see a Devtron tab added to the DevTools `

Azure AD application Registration

Register this application in the Azure Active Directory service for your Office 365 tenant. Easy to use online tool: Office 365 App Registration Tool

  • App Registration Type: Native Application
  • Redirect URI: http://localhost/callback
  • Select all read items for Users, Groups, Mail, Calendar, Contacts and Files.
  • Register the app and remember to copy your client ID provided to you.
  • Update the azure-config.ts file with your values.

Application Registration

Once your app is registered you need to download the app manifest file from Azure Portal Set "oauth2AllowImplicitFlow": true in application manifest file and upload the manifest file again.

Azure AD Application Permission requirements

You need to make sure the application permission is set correctly to have access to the Microsoft Graph resource. This can be done in the Azure Portal.

Required Permissions

  • Read all notebooks that the user can access
  • Access user's data anytime
  • Read items in all site collections
  • Read files that the user selects
  • Read user files and files shared with user
  • Read user contacts
  • Read user calendars
  • Read user mail
  • Read directory data
  • Read all groups
  • Read all users' full profiles
  • Read all users' basic profiles
  • Sign in and read user profile
  • Read user notebooks
  • Read users' relevant people list

Go to Microsoft Graph API if you want to know more.

Application Build & Deployment

Follow Electron documentation for build for Windows, Linux and OSX.

To package files for deployment:

  • npm install -g asar
  • asar pack angular2-O365-desktop-app app.asar

TODO Packaging: https://www.xplatform.rocks/2016/02/14/angular2-and-electron-the-definitive-guide/

** More details to follow **

Resources

If you have any issues or suggestion please submit on GitHub Issues.

angular2-o365-desktop-app's People

Contributors

cecildt avatar greenkeeperio-bot 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.