/README.md

https://github.com/pnp/sp-dev-fx-webparts · Markdown · 89 lines · 60 code · 29 blank · 0 comment · 0 complexity · dff63824cbf3c22b9dcb7264beea941b MD5 · raw file

  1. ---
  2. page_type: sample
  3. products:
  4. - office-sp
  5. languages:
  6. - typescript
  7. extensions:
  8. contentType: samples
  9. technologies:
  10. - SharePoint Framework
  11. createdDate: 8/30/2016 10:21:43 AM
  12. ---
  13. # SharePoint Framework Client-Side Web Part Samples & Tutorial Materials
  14. This repository contains community samples that demonstrate different usage patterns for the SharePoint Framework client-side web parts.
  15. > We do welcome community contributions to the samples folder in this repository for demonstrating different use cases with SharePoint Framework. Notice that if you use 3rd party libraries, please make sure that library license allows distributions of it as part of your sample.
  16. SharePoint client-side web parts are controls that appear inside a SharePoint page but run locally in the browser. They're the building blocks of pages that appear on a SharePoint site. You can build client-side web parts using modern script development tools and the SharePoint workbench (a development test surface), and you can deploy your client-side web parts to classic web part pages in Office 365 tenants. In addition to plain JavaScript projects, you can build web parts alongside common scripting frameworks, such as AngularJS and React. For example, you can use React along with components from Office UI Fabric React to quickly create experiences based on the same components used in Office 365.
  17. ## Have issues or questions?
  18. Please use following logic on submitting your questions or issues to right location to ensure that they are noticed and addressed as soon as possible.
  19. * You have general question or challenge with SPFx - use [sp-dev-docs repository issue list](https://github.com/SharePoint/sp-dev-docs/issues).
  20. * You have issue on specific web part or sample - use [issue list in this repository](https://github.com/pnp/sp-dev-fx-webparts/issues).
  21. ## Additional resources
  22. * [Overview of the SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
  23. * [SharePoint Framework development tools and libraries](https://docs.microsoft.com/sharepoint/dev/spfx/tools-and-libraries)
  24. * [Getting Started](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant)
  25. ## Using the samples
  26. To build and start using these projects, you'll need to clone and build the projects.
  27. Clone this repository by executing the following command in your console:
  28. ```shell
  29. git clone https://github.com/pnp/sp-dev-fx-webparts.git
  30. ```
  31. Navigate to the cloned repository folder which should be the same as the repository name:
  32. ```shell
  33. cd sp-dev-fx-webparts
  34. ```
  35. To access the samples use the following command, where you replace `sample-folder-name` with the name of the sample you want to access.
  36. ```shell
  37. cd samples
  38. cd sample-folder-name
  39. ```
  40. and for the tutorials, use the following command:
  41. ```shell
  42. cd tutorials
  43. ```
  44. Now run the following command to install the npm packages:
  45. ```shell
  46. npm install
  47. ```
  48. This will install the required npm packages and dependencies to build and run the client-side project.
  49. Once the npm packages are installed, run the following command to preview your web parts in SharePoint Workbench:
  50. ```shell
  51. gulp serve
  52. ```
  53. ## Authors
  54. This repository's contributors are all community members who volunteered their time to share code samples. Work is done as an open source community project, with each sample contained in their own solution.
  55. ## Contributions
  56. These samples are direct from the feature teams, SharePoint PnP core team (http://aka.ms/m365pnp) or shared by the community. We welcome your input on issues and suggestions for new samples. We do also welcome community contributions around the client-side web parts. If you have any questions, just let us know.
  57. Please have a look on our [Contribution Guidance](./CONTRIBUTING.md) before submitting your pull requests, so that we can get your contribution processed as fast as possible.
  58. ## Code of Conduct
  59. This repository has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
  60. > Sharing is caring!