| page_type | sample | ||
|---|---|---|---|
| languages |
|
||
| products |
|
||
| description | This demo is to show how you can instrument the Node.js and Browser Application Insights SDKs into a single MERN app. | ||
| urlFragment | appinsights-guestbook |
This demo is to show how you can instrument the Node.js and Browser Application Insights SDKs into a single MERN app. The guestbook interacts with a local Express API to add/retrieve guestbook entries from an extern Mongo database. The front-end is written in React. You must supply your own mongoDB url in index.js in order to run!
mongod
npm install
npm --prefix ./client/node_modules install ./client
npm run start-both
Browser SDK
npm i --save @microsoft/applicationinsights-webNode.js SDK
npm i --save applicationinsights**Extended Node.js Metrics (Optional)
npm i --save applicationinsights-native-metrics