Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
/ Coffee-Machine Public archive

A small coffee machine application with rest api.

Notifications You must be signed in to change notification settings

stephensli/Coffee-Machine

Repository files navigation

How To UseNotesAssumptions

How to Use

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.

  1. Update the coffee.api appsettings and appsettings.development JSON files with a valid MySQL related connection details.
  2. Restore related packages dotnet restore
  3. Execute tests to ensure correct installation and restore dotnet test
  4. Run the database migrations setup and seed the actual database: dotnet ef database update --project coffee.api
  5. Run the application dotnet run --project coffee.api and go to localhost:8080

Notes

  • 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.

Assumptions

  • 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.

About

A small coffee machine application with rest api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published