In this article we can quickly create a SharePoint Hosted App on SharePoint 2013 On-Premises.
IntroductionA SharePoint Hosted App (SHA) will have all components deployed to a SharePoint server. Optionally there can be JavaScript components running in the client side.App Pre-RequisitesYou should have the following pre-requisites done to create a SharePoint Hosted App.App Development Pre-RequisitesProcedureOpen Visual Studio 2013 in Administrator mode. Choose New Project > SharePoint > App for SharePoint 2013 as shown below.In the next dialog choose the SharePoint-hosted app option.You will get the following items created in the Solution Explorer.Run the application and if the compilation was successful you will get the password prompt.
The application should look as in the following.
Examining the ContentThe Page default.aspx is the main page.The page displays a Hello message with the current user name. The current user name is displayed using a JavaScript that you can find in the App.js.NoteYou should use a non-System account for developing apps.ReferencesOverview of apps for SharePointSummaryIn this article we saw how to create a SharePoint Hosted App.
SharePoint Online And Office 365 Administration