Skip to content

Sample single page application (SPA) that shows how to use the Microsoft Graph to get the profile of the current user from Microsoft 365.

License

Notifications You must be signed in to change notification settings

waldekmastykarz/js-graph-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample single page application showing Microsoft 365 user profile

This repo contains a sample single page application (SPA) that shows how to use the Microsoft Graph to get the profile of the current user from Microsoft 365.

Browser window with a web page showing user profile information from Microsoft 365

The app is built in two ways: using an immediately invoked function expression (IIFE) and using ES modules.

Prerequisites

Minimal path to awesome

  1. Clone the repo
  2. Change the working directory to the repo folder
  3. Start terminal, change the working directory to the repo folder and run: chmod +x setup.sh
  4. Run the setup script: ./setup.sh
  5. Start the development server: npx lite-server
  6. In your web browser open http://localhost:3000/index.html or http://localhost:3000/index_esm.html

Concepts introduced in this sample

About

Sample single page application (SPA) that shows how to use the Microsoft Graph to get the profile of the current user from Microsoft 365.

Topics

Resources

License

Stars

Watchers

Forks