Skip to content

Commit f07ff21

Browse files
committed
Merge pull request yongjhih#31 from fabiocav/master
Adding a "Getting Started with Azure" section to readme
2 parents 6640204 + d2da443 commit f07ff21

File tree

2 files changed

+146
-0
lines changed

2 files changed

+146
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ Read the full server guide here: https://parse.com/docs/server/guide
3030
* By default it will use a path of /parse for the API routes. To change this, or use older client SDKs, run `heroku config:set PARSE_MOUNT=/1`
3131
* Deploy it with: `git push heroku master`
3232

33+
### Getting Started Microsoft Azure App Service
34+
35+
#### With the Deploy to Azure Button
36+
37+
[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/)
38+
39+
#### Without It
40+
41+
A detailed tutorial is available here:
42+
[Azure welcomes Parse developers](https://azure.microsoft.com/en-us/blog/azure-welcomes-parse-developers/)
43+
3344
### Using it
3445

3546
You can use the REST API, the JavaScript SDK, and any of our open-source SDKs:

azuredeploy.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"siteName": {
6+
"type": "string"
7+
},
8+
"hostingPlanName": {
9+
"type": "string"
10+
},
11+
"siteLocation": {
12+
"type": "string"
13+
},
14+
"sku": {
15+
"type": "string",
16+
"allowedValues": [
17+
"Free",
18+
"Shared",
19+
"Basic",
20+
"Standard"
21+
],
22+
"defaultValue": "Free"
23+
},
24+
"workerSize": {
25+
"type": "string",
26+
"allowedValues": [
27+
"0",
28+
"1",
29+
"2"
30+
],
31+
"defaultValue": "0"
32+
},
33+
"mongoConnectionString": {
34+
"type": "string",
35+
"minLength": 5
36+
},
37+
"parseAppId": {
38+
"type": "string",
39+
"minLength": 1,
40+
"defaultValue": "myAppId"
41+
},
42+
"parseMasterKey": {
43+
"type": "string",
44+
"minLength": 1,
45+
"defaultValue": "myMasterKey"
46+
},
47+
"repoURL": {
48+
"type": "string",
49+
"defaultValue": "https://github.com/parseplatform/parse-server-example.git",
50+
"metadata": {
51+
"description": "The URL for the GitHub repository that contains the project to deploy."
52+
}
53+
},
54+
"branch": {
55+
"type": "string",
56+
"defaultValue": "master",
57+
"metadata": {
58+
"description": "The branch of the GitHub repository to use."
59+
}
60+
}
61+
},
62+
"resources": [
63+
{
64+
"apiVersion": "2014-06-01",
65+
"name": "[parameters('hostingPlanName')]",
66+
"type": "Microsoft.Web/serverFarms",
67+
"location": "[parameters('siteLocation')]",
68+
"properties": {
69+
"name": "[parameters('hostingPlanName')]",
70+
"sku": "[parameters('sku')]",
71+
"workerSize": "[parameters('workerSize')]",
72+
"numberOfWorkers": 1
73+
}
74+
},
75+
{
76+
"apiVersion": "2014-06-01",
77+
"name": "[parameters('siteName')]",
78+
"type": "Microsoft.Web/Sites",
79+
"location": "[parameters('siteLocation')]",
80+
"dependsOn": [
81+
"[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]"
82+
],
83+
"tags": {
84+
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
85+
},
86+
"properties": {
87+
"name": "[parameters('siteName')]",
88+
"serverFarm": "[parameters('hostingPlanName')]"
89+
},
90+
"resources": [
91+
{
92+
"apiVersion": "2014-04-01",
93+
"type": "config",
94+
"name": "web",
95+
"dependsOn": [
96+
"[concat('Microsoft.Web/Sites/', parameters('siteName'))]"
97+
],
98+
"properties": {
99+
"appSettings": [
100+
{
101+
"name": "DATABASE_URI",
102+
"value": "[parameters('mongoConnectionString')]"
103+
},
104+
{
105+
"name": "PARSE_APP_ID",
106+
"value": "[parameters('parseAppId')]"
107+
},
108+
{
109+
"name": "PARSE_MASTER_KEY",
110+
"value": "[parameters('parseMasterKey')]"
111+
},
112+
{
113+
"name": "WEBSITE_NODE_DEFAULT_VERSION",
114+
"value": "4.2.3"
115+
}
116+
]
117+
}
118+
},
119+
{
120+
"apiVersion": "2015-04-01",
121+
"name": "web",
122+
"type": "sourcecontrols",
123+
"dependsOn": [
124+
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
125+
],
126+
"properties": {
127+
"RepoUrl": "[parameters('repoURL')]",
128+
"branch": "[parameters('branch')]",
129+
"IsManualIntegration": true
130+
}
131+
}
132+
]
133+
}
134+
]
135+
}

0 commit comments

Comments
 (0)