This project provides a minimal backend API for a record shop using ASP.NET Core and SQLServer.
Load RecordShop.sln
in Visual Studio, from where the project can be run and tested using Visual Studio's user interface.
- Clone or download the repository.
cd
into the repo folder:
cd cs-record-shop
cd
into theRecordShop
project.
cd RecordShop
- Run the project:
dotnet run
This will build and run the project. Among the messages that appear in the console will be one providing the address on which the server is listening, e.g.:
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:<PORT>
where <PORT>
stands for a four digit port number, that will be needed for subsequent steps.
- In a browser, navigate to:
http://localhost:<PORT>/Albums
This will display a list of albums in the database. Using the browser alone it will only be possible to access data in the database: it will not be possible to modify the data.
- In a browser, navigate to:
http://localhost:<PORT>/swagger/index.html
This will provide the possibility of submitting the full range of GET, POST, PUT and DELETE requests.
cd
into the tests folder in the repo:
cd cs-record-shop/RecordShop_Tests
- Run the tests with:
dotnet test
The project was written as a learning exercise as part of the Northcoders software development bootcamp.
The main project has no third-party dependencies beyond those required for ASP.NET and Entity Framework (working with SQLServer).
The test project depends on:
For license texts, see under LICENSES/
.