SharePoint Framework is the new development model in which lots of work has been going on in the past year. It went to General Availability on Feb 23rd 2017. It is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data and support for open source tooling. With the SharePoint Framework, you can use modern web technologies and tools in your preferred development environment to build productive experiences and apps in SharePoint.
In the previous article, we saw how to set up the development environment for SharePoint Framework. In this article, we will see how to create and deploy the first client web part using SharePoint Framework.
Create the SharePoint Framework Web part Project
We will be creating a Hello World client web part to understand the project structure and testing procedure. Before moving forward, ensure that the SharePoint Framework development environment is ready. Spin up Node.js command prompt using which we will be creating the web part project structure.

We can create the directory where we would be adding the solution using the below command:
md ClientWebPart-HelloWorld
Let’s move to the newly created working directory using the command:
cd ClientWebPart-HelloWorld

We will then create the client web part by running the Yeoman SharePoint Generator:
yo @microsoft/sharepoint

This will display the prompt which we will have to fill up so as to proceed with project creation,
- What is your solution name? : Accept the default client-web-part-hello-world as your solution name and choose Enter.
- Where do you want to place your files : Use Current Folder
- What framework would you like to start with : Select “No javaScript web framework” for the time being as this is a sample web part

- What is your webpart name : Go on and press enter to accept the default Web part name as HelloWorld
- Go on and press enter to accept the default Web part description as HelloWorld description
Yeoman has started working on the scaffolding of the project. It will install the required dependencies and scaffold the solution files for the HelloWorld web part which will take some time to complete. Once completed, we will get a Congratulations message.

Test the web part
So as to test the client web part, we can build and run it on the local web server where we are developing the web part. SharePoint Framework development uses HTTPS endpoint by default. Since a default certificate is not configured for the local development environment, our browser will report a certificate error. The SharePoint Framework tool chain comes with a developer certificate that we can install for testing client web parts locally. From the current web part directory, run the below command:

















Humayun Kabir MamunPosted Mar 21, 2017, 6:29 AM
Very helpful article bro...
Madhanmohan DevarajanPosted Mar 16, 2017, 10:43 AM
Hope it will be good start to know about the SharePoint Framework.
Rathrola Prem KumarPosted Mar 15, 2017, 2:28 AM
Thanks for sharing :)