Skip to content

s-KaiNet/fast-serve-teams-tk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Contoso Retail Dashboard Sample

This is a dashboard sample based on demo sample data that shows you how to create a Microsoft Teams personal app with SharePoint Framework, hosting the solution also in Outlook.com and in the Microsoft 365 Portal as a Microsoft 365 app.

RetailDashboard

This sample illustrate

  • How to leverage existing react component to set up a dashboard with SharePoint Framework
  • How to create a Microsoft Teams personal app with SharePoint Framework, hosting the solution also in Outlook.com and in the Microsoft 365 Portal as a Microsoft 365 app

Prerequisite to use this sample

Minimal path to awesome

Deploy the app

Here are the instructions to run the sample in Visual Studio Code. You can also try to run the app using TeamsFx CLI tool, refer to Try sample with TeamsFx CLI

  1. Clone the repo to your local workspace or directly download the source code.
  2. Open the project in Visual Studio Code, click Provision in LIFECYCLE panel of Microsoft Teams Toolkit extension or open the command palette and select Teams: Provision. This step will create an app in Teams App Studio.
  3. Go back to Microsoft Teams Toolkit extension, click Deploy in LIFECYCLE panel or open the command palette and select Teams: Deploy.

    This step will build a SharePoint package (*.sppkg) under sharepoint/solution folder. The Teams Toolkit will automatically upload and deploy it to your tenant App Catalog site. Only tenant App Catalog site admin has permission to do it. If you are not the admin, you can create your test tenant following Setup your Microsoft 365 tenant.

Launch the app in Teams

  1. Once deployment is completed, you can preview the app. In Visual Studio Code, select target environment and click Preview App in ENVIRONMENT panel to open a browser.

Run the app locally

  1. In Debug mode, select one of the debug configurations (SharePoint workbench, Teams workbench, Outlook workbench and The Microsoft 365 app workbench are supported) and press start button. The browser will be opened and you need to sign in with your Microsoft 365 account.
  2. Click Add if you selected Teams workbench in previous step.
  3. You should see the app running in your selected hub: teams-hosted Contoso Retail Dashboard in Teams outlook-hosted Contoso Retail Dashboard in Outlook office-hosted Contoso Retail Dashboard in Office

Advanced usage of this sample

You could set up your own back-end REST API project as Azure Function to use real data instead of faked one. We'll also add back-end support to update this sample later.

Version History

Date Author Comments
Sep 15, 2023 huihuiwu Onboard to Teams Toolkit
Dec 5, 2023 yuqzho Upgrade to SPFx 1.18.2

Feedback

We really appreciate your feedback! If you encounter any issue or error, please report issues to us following the Supporting Guide. Meanwhile you can make recording of your journey with our product, they really make the product better. Thank you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages