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
AU$36.99 AU$53.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.4 (5 Ratings)
eBook Oct 2018 478 pages 1st Edition
eBook
AU$36.99 AU$53.99
Paperback
AU$67.99
Subscription
Free Trial
Renews at AU$24.99p/m
Arrow left icon
Profile Icon Zuker Profile Icon Dresher Profile Icon Friedman
Arrow right icon
AU$36.99 AU$53.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.4 (5 Ratings)
eBook Oct 2018 478 pages 1st Edition
eBook
AU$36.99 AU$53.99
Paperback
AU$67.99
Subscription
Free Trial
Renews at AU$24.99p/m
eBook
AU$36.99 AU$53.99
Paperback
AU$67.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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

Billing Address

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

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 : 9781788627757
Vendor :
Microsoft
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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

Billing Address

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.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
AU$249.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 AU$5 each
Feature tick icon Exclusive print discounts
AU$349.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 AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 215.97
Hands-On Azure for Developers
AU$79.99
Hands-On TypeScript for C# and .NET Core Developers
AU$67.99
Hands-On Full-Stack Web Development with ASP.NET Core
AU$67.99
Total AU$ 215.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

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.