Introduction
I was creating a Single Page Application using Angular 5, PnPJS Libraries and sp-rest-proxy.
I have created a boilerplate project in GitHub. Please clone and run the project after installing npm packages (npm install).
To run the project open two command prompts and type
npm run hmr
npm run serve.
You will be asked your SharePoint Online site url and the credentials in the command prompt. Feel free to provide them.
Once you done with these steps browse with http://localhost:4200/ and you will see your basic detail as below.
Since then you can develop your complex single page application.
GitHub Url
https://github.com/SuhailCloud/Angular5-PnPJS-SPRestProxy
Resources and References
- https://pnp.github.io/pnpjs/
- https://www.npmjs.com/package/sp-rest-proxy
- http://johnliu.net/blog/2017/9/angular-4-sharepoint-on-premises-localhost-development-and-sp-rest-proxy
- https://github.com/koltyakov/sp-rest-proxy/issues/41
No comments:
Post a Comment