From the course: Building and Securing RESTful APIs in ASP.NET Core

Create a new project - ASP.NET Core Tutorial

From the course: Building and Securing RESTful APIs in ASP.NET Core

Start my 1-month free trial

Create a new project

- [Instructor] Let's dive in and start building our REST API project. I'm gonna use Visual Studio 2017 on Windows, but you can also use Visual Studio Code or your favorite text editor on Mac or Linux. If you're using a different editor, it'll just look a little different than my screen. To set up the base project, choose File, New Project. Pick .NET Core and ASP.NET Core Web Application. I'll type a name for it, which is LandonApi, and choose where I want to save this project. On the next screen, I'll choose the API template. ASP.NET Core 2.1 is the latest version at the time of this course. I'll also choose No Authentication. We'll add authentication later. Then click OK to scaffold the base project. The Web API template adds the packages you need to write API controllers that return JSON, which is exactly what we want. It's a good idea to check for any minor package updates by right-clicking on the project and choosing Manage NuGet Packages and then seeing if there's any updates available. When we compile and run this application, it'll launch with IIS Express and hit the demo controller. Now that we have a basic API project set up, let's look at configuring the project.

Contents