The Microsoft Graph Explorer V4 lets developers quickly navigate and test API endpoints.
The Graph Explorer is written in TypeScript and powered by:
npm installto install project dependencies.npmis installed by default with Node.js.npm startstarts the TypeScript compiler in watch mode and the local server. It should open your browser automatically with the Graph Explorer at http://localhost:3000/.
- Signing to your Microsoft account or Create one if you don't have.
- In the Dashboard, click
Add an app in the Azure portal. You will be redirected to the Microsoft Azure portal where you Register an application. Set Redirect URI tohttp://localhost:3000.You can also set it from authentication tab in the app you have just created. - Create a
.envfile at the root of the project and add the following keys.- REACT_APP_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- REACT_APP_INSTRUMENTATION_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Where REACT_APP_CLIENT_ID is the Application (client) ID from the Azure portal and REACT_APP_INSTRUMENTATION_KEY is the Object ID from the portal.
npm testto run tests from the command line for scenarios like parsing metadata and functional explorer tests.npm run cito run accessibility tests from the command linenpm run lintlinting your files
Please see the contributing guidelines.
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.
- Download the latest stable chromedriver from here.
- In your
.envfile, create a variableREACT_APP_CHROMEDRIVER_PATHand save the path to yourchromedriver.exefile. For example (on a Windows PC) it would be :REACT_APP_CHROMEDRIVER_PATH=C:\\SeleniumWebDrivers\\ChromeDriver\\chromedriver.exeTake note of the format. - Save your changes.
- On your terminal run the command
npm install. - Once the installation is complete run the command
npm run ci.
- You cannot remove permissions by using the Graph Explorer UI. You will need to remove the application consent and then re-consent to remove permissions. I know, this is far from a good experience.
Copyright (c) 2017 Microsoft. All rights reserved.