Skip to content

Repository of the ASP Core Web API application that provides service discovery for the HaloLive backend.

License

Notifications You must be signed in to change notification settings

HaloLive/HaloLive.ServiceDiscovery.Service

Repository files navigation

HaloLive.ServiceDiscovery.Service

Repository of the ASP Core Web API application that provides service discovery for the HaloLive backend.. If you're looking for information or documentation consult the Documentation Repo that contains design diagrams, endpoint and request/response documentation and information about much more.

See the section on Service Discovery specifically.

Setup

To use this project you'll first need a couple of things:

Build

To build the service you can run the Batch script called build.bat or manually publish it in visual studio.

Both will successfully build the application.

Running

To run the application you can use the run.bat, assuming you built it with build.bat and put it in the build directory, or you can run the following command in the console in the publish directory:

dotnet HaloLive.ServiceDiscovery.Application.dll

Configuration

In the future endpoints entries may move to a MySQL database. Right now they're located in the file store serialized in JSON. The current endpoint loading system expects all endpoints to be in a folder called Endpoints relative to the running application. The build script will create this folder for you.

It expects endpoint files to be named Endpoints{Region}.json where the {Region} is a region string like US or CN. Below is an example file for the EndpointsUS.json file.

{
	"Region": "US",

	"ServiceEndpoints":
	{
		"AuthenticationService" : { "EndpointAddress": "127.0.0.1", "EndpointPort": 80 }
	}
}

Tests

TODO: The current appveyor tags are to HaloLive.Library

Windows .NET Debug
master Build status
dev Build status

About

Repository of the ASP Core Web API application that provides service discovery for the HaloLive backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published