Giter Site home page Giter Site logo

sharepoint-spfx-notes's Introduction

Sharepoint SPFX notes

Personal notes building SPFX webparts on Sharepoint (on a Apple Mac)

Dependencies

  • NodeJS (Atleast version 6)
  • Yeoman
    • npm install -g yo gulp
  • Yeoman SharePoint generator
    • npm install -g @microsoft/generator-sharepoint

Creating Web Part Project

  • Create Folder
    • mkdir [app-name]
  • Go to root directory
    • cd [app-name]
  • Run Yeoman Sharepoint Generator
    • yo @microsoft/sharepoint
  • When Prompted
    • Accept the default [app-name] as your solution name, and then select Enter.
    • Select SharePoint Online only (latest), and select Enter.
    • Select Use the current folder for where to place the files.
    • Select N to require the extension to be installed on each site explicitly when it's being used.
    • Select WebPart as the client-side component type to be created.
    • Accept the default [app-name] as your web part name, and then select Enter.
    • Accept the default [app-name] description as your web part description, and then select Enter.
    • Select "REACT" framework you would like to use, and then select Enter.
  • Install the developer certificate
    • gulp trust-dev-cert
  • Preview Application
    • gulp serve
  • Correct localhost properties
    • /config/serve.json
    • change initial page to "http://localhost:4321/temp/workbench.html"

Libraries

  • ESLint
    • npm install --save-dev eslint-config-rallycoding
    • Create .eslintrc file on route directory
    • { "presets": ["react-native"] }
  • Firebase
    • npm install --save firebase
  • Redux
    • npm install --save redux react-redux
  • Redux-Thunk (Used for asynchronous dispatch)
    • npm install --save redux-thunk
  • Axios
    • npm install --save axios
  • Lodash (Helper method for objects and arrays)
    • npm install --save lodash

Errors/Troubleshooting

sharepoint-spfx-notes's People

Watchers

Allain Dollete 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.