This project marks the third step in my learning journey towards building a REST API with ASP.NET Core. I plan on refactoring the ShoppingItemsController by extracting the domain logic and database interactions out of the Controller and into a Services class.
Initially, this explanation of the difference between controllers and services and this follow up article explaining why it's a good idea to separate them were the clearest I found. Although the examples are all in Node.js, the concepts are explained in simple terms.
I also read this article about splitting services and controllers as part of a clean onion architecture in .NET but it seemed like far too much to take on at this stage, involved making 6 separate class libraries, etc.
Haven't done this yet
Haven't done this yet
Not sure what they'll be at this stage.
In order to run the program, you will need to have the .NET SDK installed on your computer.
You can install the .NET SDK using homebrew on the command line: brew install --cask dotnet-sdk
Alternatively, you can download the .NET SDK here
To start up the API locally, use the command dotnet run
from the CLI when inside the FirstWebApp/
directory