You need to have installed :
- Node.js version 12 LTS from here.
- Azure Functions Core Tools. To install it, execute the following command :
npm install -g azure-functions-core-tools
Azure Functions Core Tools enables you to execute your Functions runtime locally. To do so, execute the following command :
func start
If everything is working properly, you should get the following CLI output : To verify that the API is working properly, go to the following URL : http://localhost:3001/api/cats.
Depending on the configuration of your machine, you might need to install the .NET Core 2.x SDK.
This is because Functions are built on top on .NET Core. When you start the Functions runtime, it spins up a .NET Core runtime, in which the desired runtime of your functions - Node.js in our case - runs.
You normally don't need this with this project, as we make use of the extensions bundle. But just in case, here's a warning...