sp-dev-fx-webparts/samples/react-company-stories
luismanez 52f3df5907 react-company-stories sample webpart added 2021-03-31 11:38:47 +02: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 react-company-stories sample webpart added 2021-03-31 11:38:47 +02: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 webpart 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

Used SharePoint Framework Version

version

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 webpart to the SharePoint Workbench (same Site where the List was created)

Features

This webpart illustrates the following concepts:

References

About SPFx: