See above how to develop for Azure Functions.
We recommend you to use vscode extension to develop with azure, see more
First, install the libraries with:
npm i
Then, to test locally, run:
npm run start
To test like Azure Function, you can run:
npm run start:azure