using rest to create responsive html 5 share point intranets

36
Using REST to create Responsive HTML 5 SharePoint intranets

Upload: innotech

Post on 26-Jan-2017

219 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Using rest to create responsive html 5 share point intranets

Using REST to create Responsive HTML 5

SharePoint intranets

Page 2: Using rest to create responsive html 5 share point intranets

About Sundown Solutions High end SharePoint Consultancy based in the North West

Microsoft Gold Partner Customers covering the whole of the UK, Isle of Man, USA Operate a streamlined “core” business with a wide network of

Associates, Consultants and developers across the UK Interested in working with forward-thinking, inspirational,

businesses keen to move into Next Generation information management and productivity solutions based around the best Cloud Platform the industry has to offer

Strong network of “associates” bringing complementary skills to the team

Page 3: Using rest to create responsive html 5 share point intranets

Key People / AssociatesHeath Groves – MCM A current Microsoft

Certified Master and Microsoft Certified Solutions Master based in the North West, UK

Spent four years on the Office 365 Escalations team for both dedicated and multitenant working exclusively at Tier 3.

Now works free-lance for large organisations that require in-depth, high-end SharePoint assistance.

Chris Webb – MCM SharePoint 2010, MCSM

SharePoint, & MCT SharePoint architect currently

working as a freelance consultant out of the Dallas/Ft Worth area. 

Originally from the small town of Syracuse, Indiana, he started his career as a consultant primarily working with Exchange. 

He then went on to do VMware, Active Directory, and SharePoint work. 

In 2011, he moved to Texas and took a position as a Tier III SharePoint Escalation Engineer with the SharePoint Online Dedicated Escalation team at Microsoft.

Page 4: Using rest to create responsive html 5 share point intranets

Key People / Associates

Keith McKnightDeveloper

Pathik RawalConsultant

Karl DiggleDeveloper

Adam BrownPower User

Giles CourtPower User

Alan RichardsMVP - Consultant

Steve DixonSenior SQL Consultant

Sam Dolan Graphics Designer

Page 5: Using rest to create responsive html 5 share point intranets

Our Clients

Page 6: Using rest to create responsive html 5 share point intranets

Content Defining the Problem What is REST and why use it? Getting ready to use REST Demo 1 – The Basics Demo 2 – From file Demo 3 – Implementing the HTML5 Template Demo 4 – Add REST to the template Demo 5 – The template showcase Summary End

Page 7: Using rest to create responsive html 5 share point intranets

Content All content from this presentation can be found at:

http://www.sundownsolutions.co.uk

All related articles are listed on the blog:

http://www.sundownsolutions.co.uk/blog Please contact me on

[email protected]

Page 8: Using rest to create responsive html 5 share point intranets

The Problem

Page 9: Using rest to create responsive html 5 share point intranets

The Problem Vast amounts of time and effort spent on the cloud

infrastructure O365, SP2016, Hybrid & Azure

Not much time spent and effort spent on latest web trends Responsiveness - office Fabric UI – released in Q4 2015… really? On-Prem responsiveness released via PNP… really?

SharePoint uses Master Pages Upgrade blockers

Page 10: Using rest to create responsive html 5 share point intranets

The Consequences SharePoint is “Heavy”

Long load times

SharePoint is “Ugly” Although the O365 and SP2016 are perfectly functional

When compared to other “web” products SharePoint looks old Web isn’t just Public – its also intranets Intranets deserve our love to…

Page 11: Using rest to create responsive html 5 share point intranets

Agree or disagree SharePoint usually has two tracks

Infrastructure Development

“When we move to the cloud we won’t need our Infrastructure team anymore”

“SharePoint is not as relevant now as it once was…”

Page 12: Using rest to create responsive html 5 share point intranets

Infrastructure Team How much time was spent on fixing servers? How much time was spent on:

Permissions User Training Break Fixing Apps

Does this work load disappear with the move to the cloud?

No – but the way its actioned changes: CSOM (PowerShell/JSOM)

Page 13: Using rest to create responsive html 5 share point intranets

Environmental Factors Company data stored in SharePoint for nearly 2

decades The richest data repository in the company

Data – obviously Logs Auditing Search People

Page 14: Using rest to create responsive html 5 share point intranets

The Gartner Scale of Influence The use of APIs to interact seamlessly is one of the most

used aspects on the current scale of influence Any system that houses your company data that can be

used in such a way is vital to the companies future. API access to SharePoint is more relevant now than ever

before..

“SharePoint has been away for a while… but on the May the 4th – your going to see that SharePoint is back – big

time!”

Page 15: Using rest to create responsive html 5 share point intranets

What is REST and why use it?

Page 16: Using rest to create responsive html 5 share point intranets

What is REST? REST stands for Representational State Transfer. (It is sometimes spelled

"ReST".) It relies on a stateless, client-server, cacheable communications protocol -- and in virtually all cases, the HTTP protocol is used.

REST is an architecture style for designing networked applications. The idea is that, rather than using complex mechanisms such as CORBA, RPC or SOAP to connect between machines, simple HTTP is used to make calls between machines.

In many ways, the World Wide Web itself, based on HTTP, can be viewed as a REST-based architecture.

RESTful applications use HTTP requests to post data (create and/or update), read data (e.g., make queries), and delete data. Thus, REST uses HTTP for all four CRUD (Create/Read/Update/Delete) operations.

For SharePoint purposes we will be using REST with Javascript/jQuery

Page 17: Using rest to create responsive html 5 share point intranets

Why use REST with Sharepoint? Simple to use

In comparison to caml Language agnostic

Can be used in JavaScript, C#, pearl, PHP, Ruby… Fast! Lightweight Can be used anonymously Works seamlessly between O365 and on premise

Page 18: Using rest to create responsive html 5 share point intranets

Getting ready to use REST

Page 19: Using rest to create responsive html 5 share point intranets

Questions Everything is easy when you know how… How many people have used REST? How many articles or videos have you found that

show you how to implement a REST pull for SharePoint from start to end?

If this material is thin on the ground, yet its so easy… why is their a knowledge gap?

Page 20: Using rest to create responsive html 5 share point intranets

Link to jQuery Not necessary required for REST Used for the AJAX query portion Use CDN:

https://code.jquery.com/jquery-1.12.2.min.js Or download and place in library for local use

Page 21: Using rest to create responsive html 5 share point intranets

Require Use remote Interface Auth provider settings

Site Level

Page 22: Using rest to create responsive html 5 share point intranets

Demo 1 – The Basics

Page 23: Using rest to create responsive html 5 share point intranets

Code Base Scripts Web Part:

Content Web Part:

Page 24: Using rest to create responsive html 5 share point intranets

Code Base REST Web Part

Page 25: Using rest to create responsive html 5 share point intranets

Demo 2 – From file

Page 26: Using rest to create responsive html 5 share point intranets

Code Base

Page 27: Using rest to create responsive html 5 share point intranets

Demo 3 –Implementing the HTML 5 Template

Page 28: Using rest to create responsive html 5 share point intranets

Process Select your HTML 5 Template Upload to document library

If friendly URLs required then upload to pages Rename pages to ASPX using SP Designer 2013 Set home page

Use section replacer to maintain tags (optional)

Page 29: Using rest to create responsive html 5 share point intranets

Demo 4 – Add REST to the

template

Page 30: Using rest to create responsive html 5 share point intranets

Process Create your content lists (News, Blogs etc.) Link to your JS files Build your REST queries

Page 31: Using rest to create responsive html 5 share point intranets

Demo 5 – The template

showcase

Page 32: Using rest to create responsive html 5 share point intranets

Sundown Solutions

Page 33: Using rest to create responsive html 5 share point intranets

Fircroft

Page 34: Using rest to create responsive html 5 share point intranets

Symphony Housing

Page 35: Using rest to create responsive html 5 share point intranets

ARAG Insurance

Page 36: Using rest to create responsive html 5 share point intranets

Summary