sp-dev-fx-webparts/samples/react-company-stories
Hugo Bernier 253df147f4 Updated compatiblity matrix 2021-11-07 01:43:55 -04:00
..
assets react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
config react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
src react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
.editorconfig react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
.gitignore react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
.yo-rc.json react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
MyNotes.md react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
README.md Updated compatiblity matrix 2021-11-07 01:43:55 -04:00
gulpfile.js react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
package-lock.json react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
package.json react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
tsconfig.json react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00
tslint.json react-company-stories sample webpart added 2021-03-31 11:38:47 +02:00

README.md

Company Stories Webpart

Summary

This web part allows you to add images to a SharePoint List, and renders them with a UX very similar to Instagram Stories (or Twitter Reels, or [Place your Social network here]). It is a way to engage employees, showing relevant content in a well-known visual appearance.

react-company-stories

Compatibility

SPFx 1.11 Node.js v10 Compatible with SharePoint Online Does not work with SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Local Workbench Compatible Hosted Workbench Compatible

Applies to

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

Prerequisites

  • A SharePoint list called "Stories" with the following fields:
    • Image: image field type
    • Content: multi-line field type
    • Author: Person field type stories-list
  • Permission User.ReadBasic.All to the Graph API

Solution

Solution Author(s)
react-company-stories Luis Mañez (MVP, ClearPeople, @luismanez)

Version history

Version Date Comments
1.0 March 31, 2021 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

  • Configure SharePoint permissions to Graph API (see Prerequisites). Suggest you to use the Microsoft 365 CLI
  • Clone this repository
  • Ensure that you are at the solution folder
  • In the command-line run:
    • npm install
    • gulp serve --nobrowser
  • Add the web part to the SharePoint Workbench (same Site where the List was created)

Features

This web part illustrates the following concepts:

References

About SPFx: