Skip to content

ArturWincenciak/Blef

Repository files navigation

v2.0 CleanUp Code v2.0 Inspect Code v2.1 SonarCloud Analyze v2.0 Unit Tests CodeQL CodeFactor

SonarCloud

Blef

Card game

How to run for the first time

$ dotnet run --project ./src/Blef.Bootstrapper/Blef.Bootstrapper.csproj

then open your web browser to https://localhost:49153/swagger

NOTE: Web Application will run HTTPS without certificate. To fix it run dotnet dev-certs https --trust as described in https://www.hanselman.com/blog/developing-locally-with-aspnet-core-under-https-ssl-and-selfsigned-certs

Using Dockerfile

$ docker build -t blef-dev .
$ docker run -dp 3000:80 blef-dev

then open your web browser to http://localhost:3000/swagger

Using Docker Hub

$ docker run -dp 5000:80 teovincent/blef:latest

then open your web browser to http://localhost:5000/swagger

Project diagram

The starting point is the Blef.Bootstrapper project that is responsible for loading modules and launching the service.

project diagram

Starting points of modules are in API projects, specifically in Blef.Modules.*.Api projects. Every API project contains a class that implements the IModule interface.

Currently, the project consists of two modules: Games and Users. The Games module has a starting point defined in the GamesModule class, and the Users module has a starting point defined in the UsersModule class.

Each API project module has controller definitions and its own JSON configuration files.