Introduction to SharePoint Framework (SPFx)

Slides:



Advertisements
Similar presentations
Microsoft ® Official Course Introducing Apps for SharePoint SharePoint Practice Microsoft SharePoint 2013.
Advertisements

Becky Bertram SharePoint MVP
Intro to Apps Minnesota SharePoint User Group Raymond April 2014.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Thierry Gasser TSP
ASP.NET vNEXT & development tools Marco De
Michael Hofer Senior Consultant Microsoft Corporation.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Online Conference June 17 th and 18 th Modern SharePoint Development using Visual Studio Code.
ASP.NET Core* in 2017 The Future of Web Apps Shahed Chowdhuri
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
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.
ASP.NET Core* 1.0 The Future of Web Apps Shahed Chowdhuri
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
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
Introduction to SharePoint Framework (SPFx)
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.
SharePoint Framework (SPFx)
Working with different JavaScript frameworks and libraries
Getting started with SharePoint Framework
Introduction to SharePoint Framework
TechEd /6/2018 8:16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tips for SharePoint Framework development
Rodrigo Silva SharePoint / Office 365 Developer & Technical Architect
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
SharePoint Development
Explore PnP Partner Pack for IT pros, admins and architects
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.
Presentation transcript:

Introduction to SharePoint Framework (SPFx) Fabio Franzini - Office Servers & Services MVP @franzinifabio fabiofranzini.com

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

Introducing SharePoint Framework

SharePoint – Evolving across versions 2013 APP/ADD-IN MODEL <= 2007 FULL TRUST 2010 SANDBOX & CSOM 2016 CLOUD FRIENDLY SPFx

WHAT IS THE SPFx? Is a page and web part model with full support for client-side SharePoint development using modern web technology and tools Runs in the context of the current user and connection in the browser The controls are rendered in the normal page DOM, NO iFrames! The controls are responsive and accessible by nature It's framework agnostic The toolchain is based on common open source client development tools Component types: Client Web Part Extensions Application Customizer Field Customizer Command Sets SPFx web parts can be added to both classic and modern pages Available in the Cloud and On-Prem (SP 2016 Feature Pack 2) Context of the current user Real DOM, no iFrame It’s Responsive Open source tools and libraries WebParts Extensions Modern Pages & Classic Pages Both in Cloud and On-Prem

SPFx principles New/Modern toolchain Client-side rendering No iFrame needed No JavaScript Injection needed No server side-code needed IDE/Development platform agnostic

SPFx Toolchain

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

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 Generate local Trust Cert C:\> gulp trust-dev-cert Use code editor VS Code / Sublime Text / NotePad++, etc SharePoint Tenant App Catalog NodeJs Npm Gulp Yeoman Visual Studio Code

TypeScript, Gulp, Yeoman Sites

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 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

Deploy SPFx WebPart

PACKAGE YOUR WEBPART FOR DEPLOYMENT 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 DEPLOYMENT 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