Summary
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 powerful solutions for serving API endpoints. With Functions, you can shift your APIs to serverless architecture and not worry about server setup or maintenance.
You might also be able to reduce the cost of an always-on server and improve scalability by replacing the Node.js Express server with the Functions app. Ultimately, with Functions you focus on the code, not the servers.
Note
To deploy the Functions app to the cloud, see the tutorial Manage Azure resource groups with TypeScript Function API. You can use a free Azure account and the Azure Functions extension for Visual Studio Code to deploy the application.
The solution for the current sample project is in the solution branch of the GitHub project. Follow the instructions in the README file to get started. You can explore running the Express app or the Functions app to get a sense of the differences. Then try to apply this same shift to your code.
Other resources
To learn more about Functions, Visual Studio Code, and debugging, see the following resources:
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.
Functions
- Learn about the Functions local.settings.json file.
- Deploy a Functions app to Azure.
- Learn about Functions TypeScript support.
- Sign up for an Azure free trial.
Debugging resources
- Debug Angular.js in Visual Studio Code.
- Debug React.js in Visual Studio Code.
- Debug Vue.js in Visual Studio Code.
- Integrate with external tools via Tasks in Visual Studio Code.