SPFx People Search webpart built with React Hooks and Microsoft Graph
This project has been created as an exploration of React Hooks and accompanies a series of blog posts:
-
SharePoint/SPFx: Returning to Webpart Development Part #3 (with React Hooks)
-
SharePoint/SPFx: Returning to Webpart Development Part #4 (with React Hooks)
Get your own free development tenant by subscribing to Microsoft 365 developer program
TO-DO: Add special pre-requisites...
Solution | Author(s) |
---|---|
SPFx-People-Search | Author details (Siôn J. Lewis, www.sjlewis.com) |
Version | Date | Comments |
---|---|---|
1.0.0.3 | 29 November 2020 | Added search by display name and total record count |
1.0.0.2 | 29 November 2020 | Initial release |
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.
- Clone this repository
- Ensure that you are at the solution folder
- Open VSCode's Terminal [Ctrl]+[`] and run the following commands:
npm install
gulp trust-dev-cert
gulp clean
gulp build
gulp serve --nobrowser
Open the launch.json file and edit the two entries and replace 'tenant' with your tenant's name:
- "Tenant Workbench"
- "Tenant Test Page"
Run the following commands in VSCode's Terminal [Ctrl]+[`] to "Serve" the code to, for example, the local Workbench.
gulp serve --nobrowser
And one of your new profiles and 'Start Debugging'...
TIP: Press [Ctrl]+[c] to stop the "gulp serve" process.
Run the following commands in VSCode's Terminal [Ctrl]+[`] in preparation to deploying to an App Catalogue:
gulp clean
gulp build
gulp bundle --ship
gulp package-solution --ship
TO-DO: Description of the extension that expands upon high-level summary above.
This extension illustrates the following concepts:
- topic 1
- topic 2
- topic 3
Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance. TO-DO: Share the web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp.
- Getting started with SharePoint Framework
- Building for Microsoft teams
- Use Microsoft Graph in your solution
- Publish SharePoint Framework applications to the Marketplace
- Microsoft 365 Patterns and Practices - Guidance, tooling, samples and open-source controls for your Microsoft 365 development