Giter Club home page Giter Club logo

vue-in-sp's Introduction

Vue in SharePoint Demonstration

This is a demonstration of using Vue to build client-side webapps, hosted in SharePoint, that access content in SharePoint using Microsoft's REST API. The API calls use a custom Vue plug-in for reading and writing to the API, but you could use the SharePoint client library or the PnPjs library. Read the slides for an overview of how I use Vue in SharePoint and the examples covered in this repo.

Project setup

Set up your SharePoint environment

  1. Set up an O365 Developer account and environment
  2. Create a publishing portal site
  3. Create a library app in that site to host your web app files built in vue-cli

Install the dependencies for this code

npm install

Update main.js for your SharePoint environment:

PRODUCTION_DOMAIN = "<the domain of your SharePoint server>"
BASE_PATH = "<the path to your SharePoint site>"

You may need to modify what user profile information is available in your organization

See:

  • src/models/user
  • src/store/modules/users
  • src/view/UserExample

Compile and hot-reload for development

npm run serve

Compile and minify for production

npm run build

Then, upload these files to the SharePoint library you set up

The URL will look something like this: //YourDomain.onmicrosoft.com/sites/YourNewPublishingSite/YourNewLibrary/default.aspx

vue-in-sp's People

Contributors

ey-hoffmbe avatar

Watchers

Carl Russo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.