Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.51 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.51 KB

Vanpool Riders

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 :).

Get Started

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.

Things to try:

  • 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