This is a follow-along project created using lessons on LearnHowToProgram.com on building an MVC application that communicates with a custom-built API. This application displays queryable data about a wildlife park consisting of creatures from the cretaceous period.
- C#
- .NET 7.0
- API
- NewtonSoft
- RestSharp
- Postman
- Markdown
- Git
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 Client", while the API is called the "Cretaceous API".
This project was scaffolded using dotnet new
.
First, follow 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.