Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.42 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.42 KB

backend

The backend for the awesome fair-teams-ai.

Manual build & deploy

You'll need the .NET 6.0 SDK as it's an ASP.NET Core app, serving a REST Api for the frontend.

To restore the dependencies, build the app and run it locally just type:

cd backend
dotnet run

The OpenAPI REST API description should then be reachable in a browser on http://localhost/swagger/index.html

Docker

If you prefer Docker, you can either build the image yourself:

cd backend
docker build -t fair-teams-ai .
docker run -P fair-teams-ai

This will also build the .NET application - just inside the container. Alternatively, a pre-build, multi-platform (linux/amd64 and linux/arm64) image is also up on dockerhub.

docker run -P floriang89/fair-teams-ai:latest

Both options should make OpenAPI reachable under the same URL as above (http://localhost/swagger/index.html).

Continous integration

GitHub Actions run our automated tests for the frontend and backend. The backend tests, especially the demo analyzer tests, require a large amount of test data. That data is not checked into the repository, but stored in an Azure Blob Storage and downloaded at runtime.

For this to work, the environment variable AZURE_STORAGE_CONNECTION_STRING has to be set to the connection string of the blob container.