A sample project to calculate the number of shipping boxes required to handle a collection of products coming off a conveyor belt. Each shipping box has a maximum of 10 items and a maximum weight of 20kg. Each product can be 1, 2 or 3kg in weight.
Building and running the application requires Git to retrieve and .NET 8 to build and run the application. You can choose to use Docker to avoid installing the .NET SDK on your machine or to run it natively via the .NET 8 SDK.
- Download Git here
- Download .NET 8.0 SDK here
or
- Download Git here
- Download Docker Desktop here
# Clone the repository
git clone https://github.com/stphnwlsh/ConveyorBelt.git
# Navigate to the project directory
cd ConveyorBelt
# Build the project
docker build . -t conveyorbelt
# Clone the repository
git clone https://github.com/stphnwlsh/ConveyorBelt.git
# Navigate to the project directory
cd ConveyorBelt
# Build the project
dotnet build
# Run the application with default settings
docker run conveyorbelt
# Run the application with default settings
dotnet run