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.
- Set up an O365 Developer account and environment
- Create a publishing portal site
- Create a library app in that site to host your web app files built in vue-cli
npm install
PRODUCTION_DOMAIN = "<the domain of your SharePoint server>"
BASE_PATH = "<the path to your SharePoint site>"
See:
- src/models/user
- src/store/modules/users
- src/view/UserExample
npm run serve
npm run build
The URL will look something like this: //YourDomain.onmicrosoft.com/sites/YourNewPublishingSite/YourNewLibrary/default.aspx