Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Hands-On Full-Stack Web Development with ASP.NET Core
Hands-On Full-Stack Web Development with ASP.NET Core

Hands-On Full-Stack Web Development with ASP.NET Core: Learn end-to-end web development with leading frontend frameworks, such as Angular, React, and Vue

Arrow left icon
Profile Icon Zuker Profile Icon Dresher Profile Icon Friedman
Arrow right icon
$48.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.4 (5 Ratings)
Paperback Oct 2018 478 pages 1st Edition
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Zuker Profile Icon Dresher Profile Icon Friedman
Arrow right icon
$48.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.4 (5 Ratings)
Paperback Oct 2018 478 pages 1st Edition
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

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

Setting Up Your Development Environment

Writing code can be a complex job — you need to be precise, make as few mistakes as possible, prepare for failure, and, of course, get the job done. Tools such as an Integrated Development Environment (IDE) are important, because they can help in all of these tasks, and therefore, choosing the right one is a crucial decision in a project's life.

Just as the technologies themselves have been growing and maturing, so have the full-stack development tools. However, it is not enough for them to be amazing and simply exist—as a professional full-stack developer, it is your job to know these tools from top to bottom, and use them accordingly.

In this chapter, we will prepare our work environment, and install the following necessary applications and tools for full-stack development with the ASP.NET Core and JavaScript...

Visual Studio

Visual Studio is an IDE that we will use for writing both our backend and frontend code. With more than 20 years of existence, it is one of the most advanced development environments today.

There are plenty of IDEs, and it is up to you to try a few of them and keep the one you feel most comfortable with. For me, Visual Studio is the best choice when writing .NET code, so I chose to work with it throughout this book. Nevertheless, if you prefer a different IDE, keep using it.

Installing Visual Studio Community

Visual Studio Community edition is the free version of Visual Studio. It is more than enough for what we need, but if you're a part of an enterprise company or a big team, you might want to consider...

Node.js and npm

Node.js is a JavaScript runtime environment. It is a technology that enables you to run JavaScript code directly on your computer, without the need for a browser. It has gained popularity, Node.js is the technology responsible for these servers actually running, as well as being behind countless web development utilities. Throughout this book, we will use it for the latter option.

npm is a large repository of JavaScript libraries and utilities—almost 500,000 in the time of writing — that you can easily install and add to your project or computer.

Installing Node.js

TypeScript

TypeScript is a programming language for large web applications. It adds new static typing features to JavaScript, as well as implementing upcoming features of the JavaScript language to enable developers to use them today.

Browsers are not familiar with TypeScript, so you must compile TypeScript files into JavaScript before deploying them. To do this, you will need to install TypeScript compiler (tsc), the TypeScript compiler.

Installing TypeScript

To install TypeScript, follow the next steps:

  1. Click Start | All Programs | Windows System | Command Prompt
  2. Write the following command and press Enter:
npm install typescript -g

  1. This will start the TypeScript installation
  2. After a few seconds...

Google Chrome

There are several different browsers in use today — Google Chrome, Firefox, Microsoft Edge, Apple Safari, Opera, and more. The differences between them get smaller all the time, so as a user, choosing this browser or the other is not such a big deal.

However, as a developer, it is an important decision — you will need to pick the one that is most developer-friendly and has the best developer tools. Today, the Chrome Developer Tools, also known as Chrome DevTools, are used by many developers and provide many strong capabilities. This is why we will be using Chrome throughout this book to demonstrate and debug code samples.

Even though Chrome is the leading browser today, do not forget to test your Web API against all major browsers before going live.

To install Google Chrome, do the following:

  1. Open your browser and navigate to https://www.google...

Fiddler

Fiddler is a web-debugging proxy used to test web APIs. It enables us to make sure that our backend APIs work as expected, before integrating with the client-side. We will use it in this book to test the REST services that we will be creating using the ASP.NET Core Web API.

Installing Fiddler

To install Fiddler, follow these steps:

  1. Open your browser and navigate to https://www.telerik.com/download/fiddler
  2. Fill in the required information and click the Download button
  3. Run the downloaded file to start the installation wizard:

  1. Move forward through the installation wizard until Fiddler is installed:

  1. To test whether or not the installation succeeded, open Fiddler by clicking on Start | All Programs | Fiddler 4
  2. Fiddler...

Summary

Developer tools are like a scalpel for the surgeon — without the correct one, you will work harder than needed, and risk making mistakes.

In this chapter, we learned about and installed the main tools that every full-stack developer needs. We've talked about both backend and frontend tools that will help us throughout this book. Now that everything is ready, we can continue on to deep-diving into the technologies themselves, and start building modern Web applications.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Bring static typing to web development with features compatible in TypeScript 3
  • Implement a slim marketplace single page application (SPA) in Angular, React, and Vue
  • Modernize your web apps with Microsoft Azure, Visual Studio, and Git

Description

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.

Who is this book for?

This book is for developers who are keen on strengthening their skills in the field of cloud-based full-stack web development. You need basic knowledge of web-related pillars, including HTML, CSS, and JavaScript, as well as C# and REST. This book targets novice developers in the realm of Web development and ASP.NET who desire to advance to modern Web and ASP.NET Core development and leverage the Cloud to manage and bring everything together.

What you will learn

  • Build RESTful APIs in C# with ASP.NET Core, web APIs, and Entity Framework
  • See the history and future horizons of the web development field
  • Bring static-typing to web apps using TypeScript
  • Build web applications using Angular, React, and Vue
  • Deploy your application to the cloud
  • Write web applications that scale, can adapt to changes, and are easy to maintain
  • Discover best practices and real-world tips and tricks
  • Secure your backend server with Authentication and Authorization using OAuth 2.0
Estimated delivery fee Deliver to Turkey

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 31, 2018
Length: 478 pages
Edition : 1st
Language : English
ISBN-13 : 9781788622882
Vendor :
Microsoft
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Turkey

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Publication date : Oct 31, 2018
Length: 478 pages
Edition : 1st
Language : English
ISBN-13 : 9781788622882
Vendor :
Microsoft
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 155.97
Hands-On Azure for Developers
$57.99
Hands-On TypeScript for C# and .NET Core Developers
$48.99
Hands-On Full-Stack Web Development with ASP.NET Core
$48.99
Total $ 155.97 Stars icon
Banner background image

Table of Contents

17 Chapters
Becoming a Full-Stack .NET Developer Chevron down icon Chevron up icon
Setting Up Your Development Environment Chevron down icon Chevron up icon
Creating a Web Application with ASP.NET Core Chevron down icon Chevron up icon
Building REST APIs with ASP.NET Core Web API Chevron down icon Chevron up icon
Persisting Data with Entity Framework Chevron down icon Chevron up icon
Securing the Backend Server Chevron down icon Chevron up icon
Troubleshooting and Debugging Chevron down icon Chevron up icon
Getting Started with Frontend Web Development Chevron down icon Chevron up icon
Getting Started with TypeScript Chevron down icon Chevron up icon
App Development with Angular Chevron down icon Chevron up icon
Implementing Routing and Forms Chevron down icon Chevron up icon
App Development with React Chevron down icon Chevron up icon
App Development with Vue Chevron down icon Chevron up icon
Moving Your Solution to the Cloud Chevron down icon Chevron up icon
Deploying to Microsoft Azure Chevron down icon Chevron up icon
Taking Advantage of Cloud Services Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.4
(5 Ratings)
5 star 20%
4 star 20%
3 star 0%
2 star 0%
1 star 60%
Asim Shakour Jun 12, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really recommend this book for those that have a basic understanding of full stack, have built a basic site before and want to understand the nuts and bolts to what's happening so you can explain it properly.I struggled in the beginning but now recommend this book to many, many people.
Amazon Verified review Amazon
bengawin Jan 03, 2019
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The book is very good. It covers just about everything there is to know about end to end full stack development.One thing I think is missing hough: unit testing.
Amazon Verified review Amazon
M. Goldman May 30, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
As pointed out by other reviewers, this book is lacking in some key areas and as such I can't recommend it.The book is titled "Hands-On...", which it most certainly is not. Early on, there are clear step-by-step instructions to follow along with, but these stop very quickly. After that, you're left scratching your head trying to piece together fragments of code and understand how and where they fit in to the application you are building. While there is source code available, it is for the finished solution which means you can't even deduce it yourself by looking at the relevant code for the chapter.Another problem - the book is about ASP.NET Core which is a rapidly developing product. The book came out less than a year ago but much of the information is already out of date and consequently many of the examples don't work.While the authors are clearly very knowledgeable, the book itself is impossible to follow along with, and consequently essentially useless. Very disappointing, as based on the blurb and table of contents this seemed like exactly what I was looking for.Long story short - this book is a paperweight and I would not recommend buying it.
Amazon Verified review Amazon
SomeGuy Jan 31, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Practically no explanation; just essentially a collection of source code in book form. How can you learn anything from this? And the source code provided is for the "final" solution - there is no code for each chapter as you are suppose to build the app as you go along with the book. I would give this zero stars if I could.
Amazon Verified review Amazon
D. Manship Dec 08, 2018
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
It's not often I will leave feedback on a book - but this particular catastrophe cannot go unremarked. I literally have never read anything so confused and sloppy in my life.This is supposed to be a BOOK. I purchased a BOOK, and yet the only way to get anywhere is to download the code from the publisher. Sections of code are shown in the book, but it's often unclear whether they are for demonstration if you want me to actually type them. When I do type them there's a good chance that they won't compile because you've completely failed to include all of the code I need to enter - entire essential methods are only in the downloadable code (page 107 for example: method CreateWebHostBuilder isn't printed in the book but the change you've asked me to make to Main won't compile without it!)And even the downloadable code is faulty! The definition of the User class (not listed in the book at all) doesn't contain a UserID property, and this is very quickly detected when creating the initial migration on page 106; yet mysteriously your copy of the migration file does contain the UserID - how did you manage to create that migration?The book covers the subject of routing twice, as it does for the process of installing of Postman.Coding samples aside, the dialog itself is confusing, with far too many subjects piled on top of each other too quickly, with no space to analyse and digest what is being taught - this is after all supposed to be a teaching book. Also, subjects are introduced too early. For example, chapter 3 has a whole section on serving static files, but by chapter 5 (the pointer where I've given up with this book) I still have served ONE SINGLE static file. Why introduce the concept so early and muddy what your supposed to be doing: namely helping me learn this topic. The concept of static files, what they are, why they are need and how ASP.NET Core handles them should be introduced WHEN THE PROJECT ACTUALLY NEEDS static files.As I said, I've given up on this book at chapter five; yet more code I'm having to pull out of the download, and again it won't compile. I want to learn ASP.NET MVC and this book is simply too much of a struggle.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela