Introduction to SharePoint Framework (SPFx)

Slides:



Advertisements
Similar presentations
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Advertisements

Becky Bertram SharePoint MVP
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
ASP.NET Core* in 2017 The Future of Web Apps Shahed Chowdhuri
Office 365 Development July 2014.
Ramping Up On The SharePoint Framework (SPFx)
Introduction ITEC 420.
From SharePoint to Office 365 Development
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Build Client-side web parts for Microsoft SharePoint
SharePoint + CRM Saturday Zurich 2017
Branding Without MasterPages, the Future of UX in SharePoint Online
Get an Introduction to the SharePoint Framework
Visual Studio 2017 By Michael Washington
Understanding SharePoint Framework Extensions
Let's build with SharePoint Web parts, extensions, and much more
What's new in the world of SharePoint development and deployment
About Bill Bill Baer (ˈbɛər)
SharePoint Development in the Enterprise (What's New, What's Coming)
TechEd /1/2018 7:56 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
SharePoint Provisioning Success with PnP PowerShell
Automate Custom Solutions Deployment on Office 365 and Azure
A Short Introduction to SharePoint Framework Development Model
Line of Business Solutions in SharePoint Online
BRK4031: Best practices from Microsoft for developing with SPFx
SPC Developer 6/25/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
The Transition to Modern Office Add-in Development
Presented by Kenny Duenke and Patrick Witbrod
Upgrading from Full Trust Code to Add-in Model and SharePoint Framework Paolo Pialorsi Senior Consultant - PiaSys.com Track: DEV | Level:
8/2/2018 4:49 AM Understanding the SharePoint Framework and how it affects your JavaScript customizations Mark Rackley / Chief Strategy.
SharePoint Bruger Gruppe (SPBG) SharePoint Framework Introduction
Modern UI Extensions with the SharePoint Framework
Creating and Deploying Your First SharePoint Framework Application
New Tricks for Old Dogs: The SharePoint Framework (SPFx)
Modern UI Extensions with the SharePoint Framework
Working with the SharePoint Framework
9/13/2018 7:43 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
PowerApps for SharePoint Users
SharePoint Framework Extensions
SharePoint Practice Lead
Application Lifecycle Management – Best Practices for SharePoint and Office App development November 2015.
SPFx – A modern development tool for SharePoint
Understanding SharePoint Framework and Modern Development
Transforming SharePoint Farm Solutions to the Add-in Model
The Future of SharePoint Development - Vision, Strategy, and Roadmap
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Creating and Deploying Your First SharePoint Framework Application
Nick Trogh Technical Evangelist, Microsoft.
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Introduction to SharePoint Framework (SPFx)
SharePoint Framework (SPFx)
Working with different JavaScript frameworks and libraries
Getting started with SharePoint Framework
Introduction to SharePoint Framework
Tips for SharePoint Framework development
Getting Started with SP2013 Apps
The SharePoint framework
SharePoint 2019 Overview and Use SPFx Extensions
Visual Studio 2010 SharePoint Development Tools Overview
Microsoft Connect /28/2019 2:20 AM
SPSVB Sponsors Platinum Gold Silver.
Build /19/2019 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
SharePoint Framework and Modern Sites
Office 365 Development July 2014.
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Build’an’Office add-in- using’modern JavaScript tools and techniques
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Introduction to SharePoint Framework (SPFx) Fabio Franzini – Office Servers & Services MVP

Agenda Introducing SharePoint Framework (SPFx) SPFx Toolchain SPFx Webpart Deploy SPFx WebPart Q&A

Introducing SharePoint Framework

SharePoint Development Models 2001 ASP Classic 2003 Web parts (ASP.Net custom controls) Packaged in CAB 2007 Features WSP package 2010 Timer jobs Sandbox 2013 / 2016 SharePoint hosted addins Provider hosted add-ins JSLink / CSR SPO No code sandbox solutions SharePoint Framework (SPFx)

What is SPFx? “The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.”

Why the SharePoint Framework? SharePoint was launched as an on-premises product in 2001 including: Web arts, SharePoint feature XML, and more. Many features were written in C#, compiled to DLLs, and deployed to on-premises farms.

SPFx principles It runs in the context of the current user and connection in the browser. There are no iFrames for the customization (JavaScript is embedded directly to the page). The controls are rendered in the normal page DOM. The controls are responsive and accessible by nature. It is framework-agnostic. You can use any JavaScript framework that you like: React, Handlebars, Knockout, Angular, and more. The toolchain is based on common open source client development tools such as npm, TypeScript, Yeoman, webpack, and gulp. SPFx web parts can be added to both classic and modern pages.

SPFx Toolchain

C# TOOLCHAIN COMPARISON MS Build IIS Express VS Project  SharePoint TOOLCHAIN COMPARISON IIS Express MS Build VS Project  New  <Template> NodeJS = IIS (Express) Npm = Package Manager Gulp = MSBuild YeoMan = project scafolding in VS TypeScript= typed superset of JavaScript C# © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

SPFx DEVELOPMENT ENVIRONMENT Use any most OS / workstation Office 365 / SharePoint Online tenant App catalog for deployment Install nodeJS (current Long Term Support (LTS) version) Yeoman and Gulp C:\> npm i –g yo gulp SPFx Yeoman generator C:\> npm i –g @microsoft/generator-sharepoint C:\> npm update –g @microsoft/generator-sharepoint Use code editor VS Code / Sublime Text / NotePad++, etc SharePoint Tenant App Catalog NodeJs Npm Gulp Yeoman Visual Studio Code

SPFx Webpart

CREATE YOUR FIRST SPFx WEBPART C:\> md helloworld-webpart C:\> cd helloworld-webpart C:\> yo @microsoft/sharepoint Working on it…  You can execute yo command again to add more webparts to project Generate local Trust Cert & Serve C:\> gulp trust-dev-cert C:\> gulp serve Check out your first WebPart! May also load in SPO workbench: “../_layouts/15/workbench.aspx” Create our first SPFx webpart md helloworld-webpart cd helloworld-webpart yo @microsoft/sharepoint gulp serve ../_layouts/15/workbench.aspx Now open workbench in dev tenant, while local gulp is running

SPFx PROJECT FOLDER OVERVIEW Get to know your Webpart folder structure src: primary webpart TypeScript source code config: json configuration files for build process typings: TypeScript typings for JS libs – legacy lib: Build files (TS compiled JS) ready for bundle dist: Final web ready code for distribution sharepoint: .spapp file for App Catalog node_modules: NodeJS modules (JS) for toolchain

DEMO

Deploy SPFx WebPart

PACKAGE YOUR WEBPART FOR DEPLOY Set deployment configuration config/package-solution.json – general settings and package name write-manifests.json – CDN / bundle location – for dev, can serve locally: gulp serve -- nobrowser C:\> gulp clean (cleans sharepoint and temp folders) C:\> gulp build (Rebuilds the solution) C:\> gulp bundle (Creates the solution bundles) C:\> gulp package-solution (Creates /sharepoint/”webpart”.spapp) C:\> gulp –ship (minifies bundle and reads in CDN info from config/write- manifests.json) C:\> gulp package-solution --ship (Recreates /sharepoint/”webpart”.spapp with CDN info)

PACKAGE YOUR WEBPART FOR DEPLOY After solution created, can then add to SharePoint Add .spapp to app catalog Add Add-In to SharePoint site Add WebPart in site to content page Configure CDN Office 365 CDN: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get- started/hosting-webpart-from-office-365-cdn Azure CDN: https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/deploy-web- part-to-cdn Or manually deploy solution bundle and config write-manifests.json

Any questions?

Fabio Franzini Office Servers & Services MVP @franzinifabio