Skip to content

Latest commit

 

History

History
85 lines (58 loc) · 3.54 KB

README.md

File metadata and controls

85 lines (58 loc) · 3.54 KB

sp-insta-stories

Summary

This webpart pulls images from a SharePoint list and renders them similar to stories on Instagram. Use this webpart to provide an engaging image showcase on your SharePoint site.

sp-insta-stories

Used SharePoint Framework Version

version

Compatibility

SPFx 1.15 Node.js v16 Compatible with SharePoint Online Does not work with SharePoint 2019

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

  • This solution uses Yarn. Either install yarn globally via npm or delete yarn.lock file.
  • Before deploying you should create a compatible list on the destination SharePoint site. Use the following fields:
    • Title: Single line of text (default)
    • Content: Single or multiline text
    • Image: Image field type
    • Author: Person field type
    • Active: Yes/No field type
  • Permission User.ReadBasic.All to the Graph API

Solution

Solution Author(s)
sp-insta-stories MRS Company Ltd

Version history

Version Date Comments
1.0 November 4, 2022 Initial release

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.


Minimal Path to Awesome

git clone {repo url} # Clone repo
cd sp-insta-stories # Change directory to project folder
yarn # Install dependencies
gulp serve # Serve in dev. Remember to change your dev environment in config/serve.json
gulp build # Build solution
gulp bundle --ship # Bundle for prod
gulp package-solution --ship # Create .sppkg file

Then upload the sharepoint/sp-insta-stories.sppkg file to your App Catalog and deploy.

Features

This extension illustrates the following concepts:

  • Using @pnp/sp to pull data from SharePoint API
  • Using @pnp/graph to pull User information from Microsoft Graph
  • Using FluentUI components

References