sp-dev-fx-webparts/samples/react-company-stories
Hugo Bernier 9595591f9e Added spfx 1.11 containers 2022-02-15 00:37:36 -05: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 Added spfx 1.11 containers 2022-02-15 00:37:36 -05: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 Web part

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 Compatible with Remote Containers

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

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)

This sample can also be opened with VS Code Remote Development. Visit https://aka.ms/spfx-devcontainer for further instructions.

Features

This web part illustrates the following concepts:

References

About SPFx:

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.