How To Use • Notes • Assumptions
The project requires the installation of the dotnet core 3.1 SDK, ef tools and a MySQL server or variant (MariaDB).
If you don't have dotnet-ef, to get this you will need to run dotnet tool install --global dotnet-ef --version 3.1
.
- Update the
coffee.api
appsettings and appsettings.development JSON files with a validMySQL
related connection details. - Restore related packages
dotnet restore
- Execute tests to ensure correct installation and restore
dotnet test
- Run the database migrations setup and seed the actual database:
dotnet ef database update --project coffee.api
- Run the application
dotnet run --project coffee.api
and go tolocalhost:8080
-
Bug related to not being able to descale had to be fixed since you could only descale in an Okay state, not as described in the task document.
-
The random number assignment will never hit the value since it's not inclusive, this was just changed to 9, not 10.
-
Per day of the week show the time the first cup and last were made: This is over the life span of the machine and not just the last week.
-
First and the last cup are relative to the lifetime and not just the latest time for that day.