This project is written using Azure functions.
Using visual studio code, you can publish the project to Azure.
Follow the official guide or the steps below.
- npm install -g azure-functions-core-tools@core
- "cd" into the directory and run npm install
- Copy local.settings.example.json and rename to local.settings.json
In Visual Studio Code, press F5. Functions will automatically rebuild when changes are detected.
When running the site, the debugger should automatically start.
NOTE: The debugger currently seems to crash when changes are made and the project rebuilds itself. You will need to restart the debugger after making changes (see steps below).
In VS Code, open the debug pane (on the left) then click the play button next to Attach to Azure Functions
Keyboard shortcuts
- F9 = Add/Remove breakpoint
- F10 = Step to next line
- F11 = Step inside line
- F5 = continue until next breakpoint
- In Visual Studio Code, go to the Azure tab on the left
- Click the Create Function button
- Make sure your node modules are up to date with npm install
- npm start or func host start
Run func new. See other functions for function.json examples