Before i start developing app, i want to explain about app Hosting methods which SharePoint online support.
1.SharePoint-hostedapp
2.Provider-hosted
3.Autohosted
Right now i am going to select, SharePoint hosted app.
What is SharePoint hosted app:
Your app will be deployed to sharepoint site it will be isolayted site in side your site collection.
All app componenets will available in App Web (Where app has deployed)
In yor site collection you can add App.It is called Host Web.
Steps:
I am going to create a custom list in my app.
Steps:
I am going to use VS 2012 with all SharePoint extentions.
Open VS 2012 run as administrator
File-->New-->Project
Templates-->Visual C#-->Office/SharePoint-->Apps
Select App for SharePoint 2013
I names it as: MyFirstSPOApp
You will get one prompt
What SharePoint site do you want to use for debugging your app?
For this i have used SPO development site.
How do you want to host your app for SharePoint?
Select: SharePoint-hosted
Finish
Right click on your project
Click Add-->New Item
Select List
Enter Some name:MySPOList
Add
In the prompt..leave as it is..
Finish
You will landup MySPOList screen..where you can enter List COlumns..
You will see...Type a new or existing column name
Type new column name: Ex: EmpName
You can select Type:
Required or not?
Click on Views Tab
You can add new Views and select columns for that view
Click on AppManifest.xml
You will Permissions Tab
Under Scope Select :Site Collection
Under Permission: Select FullControl.
Save
Deploy the app
After i deploying the app, i got my sharepoint page.
Do you trust MyFirstSPOApp?
Click on Trust It.
It has redirected to another page, where i am not able to see my list.
Just i am able to see my Name.
Where is my list?
Try like this...you will see List
https://microsoft-3e71282b7095b4.sharepoint.com/teams/MySPODevSite/MyFirstSPOApp/Lists/MySPOList
Like this you can add new items Site Columns, Workflows and New pages.
1.SharePoint-hostedapp
2.Provider-hosted
3.Autohosted
Right now i am going to select, SharePoint hosted app.
What is SharePoint hosted app:
Your app will be deployed to sharepoint site it will be isolayted site in side your site collection.
All app componenets will available in App Web (Where app has deployed)
In yor site collection you can add App.It is called Host Web.
Steps:
I am going to create a custom list in my app.
Steps:
I am going to use VS 2012 with all SharePoint extentions.
Open VS 2012 run as administrator
File-->New-->Project
Templates-->Visual C#-->Office/SharePoint-->Apps
Select App for SharePoint 2013
I names it as: MyFirstSPOApp
You will get one prompt
What SharePoint site do you want to use for debugging your app?
For this i have used SPO development site.
How do you want to host your app for SharePoint?
Select: SharePoint-hosted
Finish
Right click on your project
Click Add-->New Item
Select List
Enter Some name:MySPOList
Add
In the prompt..leave as it is..
Finish
You will landup MySPOList screen..where you can enter List COlumns..
You will see...Type a new or existing column name
Type new column name: Ex: EmpName
You can select Type:
Required or not?
Click on Views Tab
You can add new Views and select columns for that view
Click on AppManifest.xml
You will Permissions Tab
Under Scope Select :Site Collection
Under Permission: Select FullControl.
Save
Deploy the app
After i deploying the app, i got my sharepoint page.
Do you trust MyFirstSPOApp?
Click on Trust It.
It has redirected to another page, where i am not able to see my list.
Just i am able to see my Name.
Where is my list?
Try like this...you will see List
https://microsoft-3e71282b7095b4.sharepoint.com/teams/MySPODevSite/MyFirstSPOApp/Lists/MySPOList
Like this you can add new items Site Columns, Workflows and New pages.