This repository has been archived by the owner on Aug 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from tdykstra/master
update for azure deploy button
- Loading branch information
Showing
60 changed files
with
291 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"siteName": { | ||
"type": "string" | ||
}, | ||
"hostingPlanName": { | ||
"type": "string" | ||
}, | ||
"siteLocation": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"West US", | ||
"East US", | ||
"East US 2", | ||
"Central US", | ||
"South Central US", | ||
"North Central US", | ||
"North Europe", | ||
"West Europe", | ||
"East Asia", | ||
"Southeast Asia", | ||
"Japan West", | ||
"Japan East", | ||
"Brazil South", | ||
"Australia East", | ||
"Australia Southeast", | ||
"Central India", | ||
"South India", | ||
"West India" | ||
] | ||
}, | ||
"sku": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"Free", | ||
"Shared", | ||
"Basic", | ||
"Standard", | ||
"Premium" | ||
], | ||
"defaultValue": "Free" | ||
}, | ||
"workerSize": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"0", | ||
"1", | ||
"2" | ||
], | ||
"defaultValue": "0" | ||
}, | ||
"repoUrl": { | ||
"type": "string", | ||
"defaultValue": "https://github.com/azure-samples/app-service-api-dotnet-todo-list.git" | ||
}, | ||
"branch": { | ||
"type": "string", | ||
"defaultValue": "master" | ||
} | ||
}, | ||
"variables": { | ||
"apiSiteName": "[concat(parameters('siteName'), 'API')]", | ||
"dataApiSiteName": "[concat(parameters('siteName'), 'DataAPI')]" | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2014-11-01", | ||
"name": "[parameters('hostingPlanName')]", | ||
"type": "Microsoft.Web/serverFarms", | ||
"location": "[parameters('siteLocation')]", | ||
"properties": { | ||
"name": "[parameters('hostingPlanName')]", | ||
"sku": "[parameters('sku')]", | ||
"workerSize": "[parameters('workerSize')]", | ||
"numberOfWorkers": 1 | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "[variables('dataApiSiteName')]", | ||
"type": "Microsoft.Web/sites", | ||
"kind": "api", | ||
"location": "[parameters('siteLocation')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/serverFarms', parameters('hostingPlanName'))]" | ||
], | ||
"properties": { | ||
"serverFarmId": "[parameters('hostingPlanName')]" | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "web", | ||
"type": "config", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('dataApiSiteName'))]" | ||
], | ||
"properties": { | ||
"apiDefinition": { | ||
"url": "[concat('https://', variables('dataApiSiteName'), '.azurewebsites.net/swagger/docs/v1')]" | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "appsettings", | ||
"type": "config", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('dataApiSiteName'))]" | ||
], | ||
"properties": { | ||
"PROJECT": "src\\ToDoListDataAPI\\ToDoListDataAPI.csproj" | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "web", | ||
"type": "sourcecontrols", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('dataApiSiteName'))]", | ||
"[resourceId('Microsoft.Web/Sites/config', variables('dataApiSiteName'), 'appsettings')]" | ||
], | ||
"properties": { | ||
"RepoUrl": "[parameters('repoUrl')]", | ||
"branch": "[parameters('branch')]", | ||
"IsManualIntegration": true | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "[variables('apiSiteName')]", | ||
"type": "Microsoft.Web/sites", | ||
"kind": "api", | ||
"location": "[parameters('siteLocation')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/serverFarms', parameters('hostingPlanName'))]" | ||
], | ||
"properties": { | ||
"serverFarmId": "[parameters('hostingPlanName')]" | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "web", | ||
"type": "config", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('apiSiteName'))]" | ||
], | ||
"properties": { | ||
"cors": { | ||
"allowedOrigins": [ | ||
"[concat('https://', parameters('siteName'), '.azurewebsites.net')]" | ||
] | ||
}, | ||
"apiDefinition": { | ||
"url": "[concat('https://', variables('apiSiteName'), '.azurewebsites.net/swagger/docs/v1')]" | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "appsettings", | ||
"type": "config", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('apiSiteName'))]" | ||
], | ||
"properties": { | ||
"PROJECT": "src\\ToDoListAPI\\ToDoListAPI.csproj", | ||
"toDoListDataAPIURL": "[concat('https://', variables('dataApiSiteName'), '.azurewebsites.net')]" | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "web", | ||
"type": "sourcecontrols", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', variables('apiSiteName'))]", | ||
"[resourceId('Microsoft.Web/Sites/config', variables('apiSiteName'), 'appsettings')]" | ||
], | ||
"properties": { | ||
"RepoUrl": "[parameters('repoUrl')]", | ||
"branch": "[parameters('branch')]", | ||
"IsManualIntegration": true | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "[parameters('siteName')]", | ||
"type": "Microsoft.Web/sites", | ||
"location": "[parameters('siteLocation')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/serverFarms', parameters('hostingPlanName'))]" | ||
], | ||
"properties": { | ||
"serverFarmId": "[parameters('hostingPlanName')]" | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "appsettings", | ||
"type": "config", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" | ||
], | ||
"properties": { | ||
"PROJECT": "src\\ToDoListAngular\\ToDoListAngular.csproj", | ||
"toDoListAPIURL": "[concat('https://', variables('apiSiteName'), '.azurewebsites.net')]" | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "web", | ||
"type": "sourcecontrols", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]", | ||
"[resourceId('Microsoft.Web/Sites/config', parameters('siteName'), 'appsettings')]" | ||
], | ||
"properties": { | ||
"RepoUrl": "[parameters('repoUrl')]", | ||
"branch": "[parameters('branch')]", | ||
"IsManualIntegration": true | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
ToDoListAngular/app/scripts/todoListSvc.js → ...oDoListAngular/app/scripts/todoListSvc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
ToDoListAngular/packages.config → src/ToDoListAngular/packages.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" /> | ||
<package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" /> | ||
</packages> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.