/opbeans-dotnet

.NET backend app for Opbeans, the Elastic APM demo app

Primary LanguageC#MIT LicenseMIT

Build Status

opbeans-dotnet

This is an implementation of the Opbeans Elastic APM demo app in .NET as an ASP.NET Core Web API application. It uses the same database schema as the Java version.

By default it will use a pre-populated Sqlite database.

To run the application run the following command from the opbeans folder:

dotnet run

By default the application will listen on localhost:5000. In case you would like to change this run the following command from the opbeans folder:

dotnet run --urls=http://localhost:3001

Docker based

If you'd like to run this demo as a docker container please run the below commands:

docker build --pull -t opbeans-dotnetapp .
docker run --rm -ti -p 3001:80 opbeans-dotnetapp

Makefile

Build the docker image with the usual

make build

Tests are written using bats under the tests dir

make test

Publish the docker image locally to dockerhub with

VERSION=1.2.3 make publish

NOTE: VERSION refers to the tag for the docker image which will be published in the registry