This is an example repo corresponding to multiple lessons within the LearnHowToProgram.com walkthrough on creating an ASP.NET Core MVC client to query a custom ASP.NET Core API in Section 6: Building an API.
This project is called the "Cretaceous Park Client", while the API is called the "Cretaceous Park API".
This project (the Cretaceous Park Client) corresponds to the following classwork on LearnHowToProgram.com:
- https://www.learnhowtoprogram.com/c-and-net/building-an-api/mvc-client-getall
- https://www.learnhowtoprogram.com/c-and-net/building-an-api/mvc-client-getdetails
- https://www.learnhowtoprogram.com/c-and-net/building-an-api/mvc-client-post-put-and-delete
Finally, this project was scaffolded using dotnet new
.
Install the tools that are introduced in this series of lessons on LearnHowToProgram.com.
First, following the instructions in the README of this repo to set up and run the Cretaceous Park API.
- Clone this repo.
- Open the terminal and navigate to this project's production directory called "CretaceousClient".
- Within the production directory "CretaceousClient", run
dotnet watch run
in the command line to start the project in development mode with a watcher. - Open the browser to https://localhost:7277/. If you cannot access https://localhost:7277 it is likely because you have not configured a .NET developer security certificate for HTTPS. To learn about this, review this lesson: Redirecting to HTTPS and Issuing a Security Certificate.