Assuming you first have NodeJS installed locally:
- Create a local
.env
file. This file won't be tracked by git. - Define an environment variable
APPLICATIONINSIGHTS_CONNECTION_STRING
in the.env
file and initialize it with your Azure Application Insights connection string. - Open a terminal at the root folder of this repository.
- Run
npm install
- Run
cd sample
- Run
npm start
(ornode sample.js
)