In Seattle many of us, including me, get to work in county-sponsored vanpools and vans. The site where we used to sign up and track riders was taken down a couple years ago :(. So this sample app will eventually replace it!
The app contains several components for testing App Insights, Node.js, .NET Core, and Docker. Not all of them do useful work at the moment :).
First create an Azure App Insights resource, copying the instrumentation key (aka "ikey") for use below.
Then, execute the following commands:
$ git clone https://github.com/joshgav/vanpool-riders && cd ./vanpool-riders
$ git submodule update --init
$ echo APPINSIGHTS_INSTRUMENTATIONKEY=<your_ikey> > .env
$ docker-compose up --build
Each component (.NET, Node.js, and HTML page) are instrumented with AppInsights. The instrumentation key for .NET and Node.js is picked up by docker-compose from a local .env file.
The frontend service (service-api) is available at http://localhost:8080. It's also configured to support --inspect for debugging.
- Browse to http://localhost:8080 and click the "Say It Again" button a few times. Refresh the page too.
- API calls which call MongoDB:
curl -d '{"name":"Josh","direction":"work","date":"2017-03-22"}' -H "Content-Type: application/json" http://localhost:8080/riders
curl http://localhost:8080/riders