The RavenDB Azure Function template is a template repository on GitHub which means
you can either create a new repository derived from the template or clone and push it to a new repository.
This will set up a local Azure Function app that we will deploy to your Azure account at the end of the guide.
Creating a New Repository from the Template
Depending on your environment, there are several ways to clone the template and initialize
a new Git repository.
The template repository lists each clone method you can copy & paste directly, but the fastest
way is by using degit.
npx degit ravendb/templates/azure-functions/node-http my-project
After cloning the repository locally, install the Node.js dependencies with
By default, the template is configured to connect to the Live Test instance of RavenDB.
Since this is only for testing purposes, next you will configure the app to connect to your existing
Starting the Function
You can start the Azure Function locally using:
If you are using Visual Studio Code, you can also debug the function with F5 debugging.
You will see the welcome screen if the template is set up correctly:
.NET template welcome screen" ".NET template welcome screen
Since this is only for testing purposes, next you will configure the connection to your existing RavenDB database.