In this module, you refactored your Node.js Express application to Azure Functions. Now you can think less about servers, because you're using serverless!
Node.js and Express are incredibly powerful and often used for serving API endpoints. Now with serverless architecture you can shift your APIs to Azure Functions without worrying about server setup or maintenance. You can also possibly reduce your cost of an always-on server by replacing the Node.js Express server with an Azure Functions app. For all your efforts, you end up with an API that scales well.
Ultimately, with Azure Functions you focus on the code, not the servers.
If you want to deploy the Azure Functions app to the cloud, you can deploy it by following this tutorial. All you need is an Azure account and then use the Azure Functions extension for Visual Studio Code to deploy it.
The solution for the sample project is on GitHub in the solution branch. The instructions on how to get started appear in the README file. You can explore running the Express app or the Azure Functions app to get a sense of the differences. Then try to apply this same shift to your code.
Here are several resources where you can learn more about the Azure Functions, Visual Studio Code, and other concepts covered in this module.
Visual Studio Code
- Get Visual Studio Code
- Get the Visual Studio Code Extension for Azure Tools
- Get the Visual Studio Code Extension for Azure Functions
- Learn about the Azure Functions local.settings.json file
- Learn how to Deploy to Azure Using Azure Functions
- Learn about Azure Functions TypeScript Support
- Sign up for a Free Trial of Azure