Skip to content

joshgav/vanpool-riders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published