Skip to content

Commit bf2265d

Browse files
committed
completed readme
1 parent 340457c commit bf2265d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Taxonomies for products and languages: https://review.docs.microsoft.com/new-hop
2828

2929
Thanks to native JSON support, creating a serverless REST API with Azure Functions, Azure SQL and Node is really a matter of a few lines of code. Take a look at `customer/index.js` to see how easy it is!
3030

31-
Wondering what's the magic behind? Azure Functions takes care of running the NodeJS code, so all is needed is to get the incoming HTTP request, handle it, send the data as we receive it - a JSON - to Azure SQL and we're done. Thanks to the [native JSON support that Azure SQL provides](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-json-features) does all the heavy lifting so sending data back and forth to the database is as easy as sending a JSON message.
31+
Wondering what's the magic behind? Azure Functions takes care of running the NodeJS code, so all is needed is to get the incoming HTTP request, handle it, send the data as we receive it - a JSON - to Azure SQL and we're done. Thanks to the [native JSON support that Azure SQL provides](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-json-features), it does all the heavy lifting for as so sending data back and forth to the database is as easy as sending a JSON message.
3232

3333
## Install Sample Database
3434

@@ -120,15 +120,24 @@ Debugging from Visual Studio Code is fully supported, thanks to the [Visual Stud
120120

121121
## Deploy to Azure
122122

123-
TDB
123+
Now that your REST API solution is ready, it's time to deploy it on Azure so that anyone can take advantage of it. A script `azure-deploy.sh` that uses AZ CLI (so it needs to be executed from a Linux shell. If you don't have one on your machine you can use Azure Cloud Shell) is available within the repo
124124

125-
## Connection Resiliency
125+
```bash
126+
export db_server="myserver.database.windows.net"
127+
export db_database="mydatabase"
128+
129+
./azure-deploy.sh
130+
```
126131

127-
TDB
132+
It will care of everything for you:
128133

129-
## Learn more
134+
- Creating a Resource Group (you can set the name you want by changing it directly in the .sh file)
135+
- Creating a Storage Account
136+
- Creating Azure Application Insights
137+
- Create an Azure Function app
138+
- Deploying repo code to Azure Function
130139

131-
TDB
140+
Enjoy!
132141

133142
## Contributing
134143

0 commit comments

Comments
 (0)