Book description
Gain in-depth knowledge of TypeScript and the latest ECMAScript standards by building robust web applications across different domains
Key Features
- Apply the cutting-edge features of TypeScript 3.0 to build high-performance, maintainable applications
- Learn through practical examples of using TypeScript with popular frameworks, such as Angular and React
- Focus on building high-quality applications that are modular, scalable and adaptable
Book Description
With the demand for ever more complex websites, the need to write robust, standard-compliant JavaScript has never been greater. TypeScript is modern JavaScript with the support of a first-class type system, which makes it simpler to write complex web systems. With this book, you'll explore core concepts and learn by building a series of websites and TypeScript apps.
You’ll start with an introduction to TypeScript features that are often overlooked in other books, before moving on to creating a simple markdown parser. You'll then explore React and get up to speed with creating a client-side contacts manager. Next, the book will help you discover the Angular framework and use the MEAN stack to create a photo gallery. Later sections will assist you in creating a GraphQL Angular Todo app and then writing a Socket.IO chatroom. The book will also lead you through developing your final Angular project which is a mapping app. As you progress, you'll gain insights into React with Docker and microservices. You'll even focus on how to build an image classification program with machine learning using TensorFlow. Finally, you'll learn to combine TypeScript and C# to create an ASP.NET Core-based music library app.
By the end of this book, you’ll be able to confidently use TypeScript 3.0 and different JavaScript frameworks to build high-quality apps.
What you will learn
- Discover how to use TypeScript to write code using common patterns
- Get to grips with using popular frameworks and libraries with TypeScript
- Leverage the power of both server and client using TypeScript
- Learn how to apply exciting new paradigms such as GraphQL and TensorFlow
- Use popular cloud-based authenticated services
- Combine TypeScript with C# to create ASP.NET Core applications
Who this book is for
This book is for programmers and web developers who are familiar with TypeScript and want to put their knowledge to work by building real-world complex applications. Prior experience with any other web framework is not required.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
-
Advanced TypeScript Features
- Technical requirements
- Building future-proof TypeScript with tsconfig
-
Introduction to advanced TypeScript features
- Using different types with union types
- Combining types with intersection types
- Simplifying type declarations with type aliases
- Assigning properties using object spread
- Deconstructing objects with REST properties
- Coping with a variable number of parameters using REST
- AOP using decorators
- Composing types using mixins
- Using the same code with different types and using generics
- Mapping values using maps
- Creating asynchronous code with promises and async/await
- Creating UIs with Bootstrap
- Summary
- Questions
-
Creating a Markdown Editor with TypeScript
- Technical requirements
- Understanding the project overview
- Getting started with a simple HTML project
- Writing a simple markdown parser
- Summary
- Questions
- Further reading
-
A React Bootstrap Personal Contacts Manager
- Technical requirements
- Understanding the project overview
- Getting started with the components
- Creating a React Bootstrap project with TypeScript support
- Creating our mock layout
- React using tsx components
- Displaying the personal details interface
- Validating user inputs and the use of validators
- Applying validation in a React component
- Creating and sending data to the IndexedDB database
- Enhancements
- Summary
- Questions
- Further reading
-
The MEAN Stack - Building a Photo Gallery
- Technical requirements
- The MEAN stack
- Project overview
- Getting started
- Creating an Angular photo gallery with the MEAN stack
- Summary
- Questions
- Further reading
- Angular ToDo App with GraphQL and Apollo
-
Building a Chat Room Application Using Socket.IO
- Technical requirements
- Long-running client/server communications using Socket.IO
- Project overview
- Getting started with Socket.IO and Angular
- Creating a chat room application using Socket.IO, Angular, and Auth0
- Summary
- Questions
- Further reading
- Angular Cloud-Based Mapping with Firebase
-
Building a CRM Using React and Microservices
- Technical requirements
- Understanding Docker and microservices
- Creating a microservices application with Docker
- Summary
- Questions
- Further reading
-
Image Recognition with Vue.js and TensorFlow.js
- Technical requirements
- What is machine learning and how does TensorFlow fit in?
- Project overview
- Getting started with TensorFlow in Vue
- Summary
- Questions
- Further reading
-
Building an ASP.NET Core Music Library
- Technical requirements
- Introducing ASP.NET Core MVC
- Providing the project overview
- Getting started creating a music library with ASP.NET Core, C#, and TypeScript
- Summary
- Questions
- Further reading
- Assessments
- Other Books You May Enjoy
Product information
- Title: Advanced TypeScript Programming Projects
- Author(s):
- Release date: July 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789133042
You might also like
book
Refactoring TypeScript
Discover various techniques to develop maintainable code and keep it in shape. Key Features Learn all …
book
TypeScript Quickly
TypeScript is JavaScript with an important upgrade! By adding a strong type system to JavaScript, TypeScript …
book
Learn TypeScript 3 by Building Web Applications
Learn TypeScript and many of its features by building state of art web applications from scratch …
book
Learn React with TypeScript 3
Start developing modern day component based web apps using React 16, Redux and TypeScript 3 with …