All Projects → microsoftgraph → msgraph-training-javascriptspa

microsoftgraph / msgraph-training-javascriptspa

Licence: MIT license
This sample demonstrates how to use the Microsoft Graph JavaScript SDK to access data in Office 365 from JavaScript browser apps.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to msgraph-training-javascriptspa

Partner-Smart-Office
An open source toolkit empowering partners understand their customer’s security posture.
Stars: ✭ 37 (+60.87%)
Mutual labels:  microsoft-graph
msgraph-sdk-go
Microsoft Graph SDK for Go
Stars: ✭ 105 (+356.52%)
Mutual labels:  microsoft-graph
msgraph-sdk-java-core
Microsoft Graph SDK for Java - Core Library
Stars: ✭ 33 (+43.48%)
Mutual labels:  microsoft-graph
spfx-msgraph-peoplesearch
Show and search users from your organization with an SPFx web part, through Microsoft Graph.
Stars: ✭ 29 (+26.09%)
Mutual labels:  microsoft-graph
office-mygroups-react
This application shows the list of your Office 365 Groups retrieved using the Microsoft Graph.
Stars: ✭ 27 (+17.39%)
Mutual labels:  microsoft-graph
BlazorGraphApi
Blazor Server App with Azure AD Authentication, that calls the Microsoft Graph API on-behalf of the signed-in user.
Stars: ✭ 28 (+21.74%)
Mutual labels:  microsoft-graph
powershell
PnP PowerShell
Stars: ✭ 326 (+1317.39%)
Mutual labels:  microsoft-graph
msgraph-training-nodeexpressapp
This sample demonstrates how to use the Microsoft Graph JavaScript SDK to access data in Office 365 from Node.js Express apps.
Stars: ✭ 116 (+404.35%)
Mutual labels:  microsoft-graph
dataconnect-solutions
Microsoft Graph Data Connect enables scaled access to Microsoft 365 data with fine grained consent model, integrated with compliance and governance, to enable analytics and big data applications on the largest productivity platform.
Stars: ✭ 14 (-39.13%)
Mutual labels:  microsoft-graph
msgraph-training-android
This sample demonstrates how to use the Microsoft Graph Java SDK to access data in Office 365 from native mobile Android applications.
Stars: ✭ 31 (+34.78%)
Mutual labels:  microsoft-graph
odata-client
Java client generator for a service described by OData CSDL 4.0 metadata. Includes Microsoft Graph clients (v1.0 and Beta), Graph Explorer client, Analytics for DevOps, Dynamics CRM clients
Stars: ✭ 23 (+0%)
Mutual labels:  microsoft-graph
QuickTeams
Download, Clone, Archive, Un-Archive your Microsoft Teams and manage the apps you've installed to them
Stars: ✭ 31 (+34.78%)
Mutual labels:  microsoft-graph
page_type description products languages
sample
This sample demonstrates how to use the Microsoft Graph JavaScript SDK to access data in Office 365 from JavaScript browser apps.
ms-graph
microsoft-graph-calendar-api
office-exchange-online
javascript

Microsoft Graph sample JavaScript single-page app

This sample demonstrates how to use the Microsoft Graph JavaScript SDK to access data in Office 365 from JavaScript browser apps.

Prerequisites

Before you start this tutorial, you will need access to an HTTP server to host the sample files. This could be a test server on your development machine, or a remote server.

You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. If you don't have a Microsoft account, there are a couple of options to get a free account:

Register the app

Create a new Azure AD web application registration using the Azure Active Directory admin center.

  1. Open a browser and navigate to the Azure Active Directory admin center. Login using a personal account (aka: Microsoft Account) or Work or School Account.

  2. Select Azure Active Directory in the left-hand navigation, then select App registrations under Manage.

    [!NOTE] Azure AD B2C users may only see App registrations (legacy). In this case, please go directly to https://aka.ms/appregistrations.

  3. Select New registration. On the Register an application page, set the values as follows.

    • Set Name to JavaScript Graph Tutorial.
    • Set Supported account types to Accounts in any organizational directory and personal Microsoft accounts.
    • Under Redirect URI, set the first drop-down to Single-page application (SPA) and set the value to http://localhost:8080.
  4. Choose Register. On the JavaScript Graph Tutorial page, copy the value of the Application (client) ID and save it, you will need it in the next step.

Configure the sample

  1. Rename the ./graph-tutorial/src/Config.example.js file to ./graph-tutorial/src/Config.js.
  2. Edit the ./graph-tutorial/src/Config.js file and make the following changes.
  3. Replace YOUR_APP_ID_HERE with the Application Id you got from the App Registration Portal.

[!NOTE] The steps in this section require Node.js.

Running the sample

Host the files in the graph-tutorial directory on your HTTP server. If you don't have access to a server, here are a couple of options for test server tools to run on your development machine.

http-server

If you have Node.js, http-server is a simple command-line HTTP server.

  1. Open your command-line interface (CLI) in the graph-tutorial directory.

  2. Run the following command to start a web server in that directory.

    npx http-server -c-1 -p 8080
  3. Open your browser and browse to http://localhost:8080.

dotnet-serve

If you have the .NET SDK installed, [dotnet-serve] is a simple command-line HTTP server.

  1. Open your command-line interface (CLI) in the graph-tutorial directory.

  2. Run the following command to start a web server in that directory.

    dotnet serve -p 8080
  3. Open your browser and browse to http://localhost:8080.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].