Book Image

Hands-On Full-Stack Web Development with ASP.NET Core

By : Tamir Dresher, Amir Zuker, Shay Friedman
Book Image

Hands-On Full-Stack Web Development with ASP.NET Core

By: Tamir Dresher, Amir Zuker, Shay Friedman

Overview of this book

Today, full-stack development is the name of the game. Developers who can build complete solutions, including both backend and frontend products, are in great demand in the industry, hence being able to do so a desirable skill. However, embarking on the path to becoming a modern full-stack developer can be overwhelmingly difficult, so the key purpose of this book is to simplify and ease the process. This comprehensive guide will take you through the journey of becoming a full-stack developer in the realm of the web and .NET. It begins by implementing data-oriented RESTful APIs, leveraging ASP.NET Core and Entity Framework. Afterward, it describes the web development field, including its history and future horizons. Then, you’ll build webbased Single-Page Applications (SPAs) by learning about numerous popular technologies, namely TypeScript, Angular, React, and Vue. After that, you’ll learn about additional related concerns involving deployment, hosting, and monitoring by leveraging the cloud; specifically, Azure. By the end of this book, you’ll be able to build, deploy, and monitor cloud-based, data-oriented, RESTful APIs, as well as modern web apps, using the most popular frameworks and technologies.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Contributors
Preface
Index

Creating an ASP.NET Core application


Every ASP.NET Core application starts with creating a new project. This new project can start empty or with a predefined template.

 

 

We will start by creating an empty project. To do so, follow these steps:

  1. Open Visual Studio and go to File | New | Project..., as shown in the following screenshot:
  1. In the New Project dialog, navigate through the list on the left to Visual C# | Web, then choose ASP.NET Core Web Application, fill in the application name as GiveNTake, choose your desired location, and click OK:
  1. The New ASP.NET Core Web Application- GiveNTake dialog opens. Choose Empty from the list and click OK to create the project. Make sure that you choose ASP.NET Core 2.0 from the version list:

 

 

  1. After a few moments, your web application will be ready, and should look something like the following:

Note

Creating a new empty ASP.NET Core project via the .NET CLI utility is done via the dotnet new web command.

Default files in an ASP.NET Core project

You have probably...