Book Image

Learn TypeScript 3 by Building Web Applications

By : Sebastien Dubois, Alexis Georges
Book Image

Learn TypeScript 3 by Building Web Applications

By: Sebastien Dubois, Alexis Georges

Overview of this book

TypeScript is a superset of the JavaScript programming language, giving developers a tool to help them write faster, cleaner JavaScript. With the help of its powerful static type system and other powerful tools and techniques it allows developers to write modern JavaScript applications. This book is a practical guide to learn the TypeScript programming language. It covers from the very basics to the more advanced concepts, while explaining many design patterns, techniques, frameworks, libraries and tools along the way. You will also learn a ton about modern web frameworks like Angular, Vue.js and React, and you will build cool web applications using those. This book also covers modern front-end development tooling such as Node.js, npm, yarn, Webpack, Parcel, Jest, and many others. Throughout the book, you will also discover and make use of the most recent additions of the language introduced by TypeScript 3 such as new types enforcing explicit checks, flexible and scalable ways of project structuring, and many more breaking changes. By the end of this book, you will be ready to use TypeScript in your own projects and will also have a concrete view of the current frontend software development landscape.
Table of Contents (15 chapters)

Installing and configuring Git

Now let's install Git, a tool that you will actually use for many years to come.

Windows

Here are the steps to follow in order to install Git on Windows:

  1. Go to the official site for Git and download the binaries: https://gitforwindows.org.
  2. Once downloaded, click on Run. Again, make sure that you don't sell your soul, although this time, we're in safer GNU territory:
  1. On the next screen, make sure to add the Windows Explorer integration (Git Bash Here) and to check the Use a TrueType font in all console windows (your eyes will thank us):
  1. Select your text editor of choice (are you a nano or a vim person? That actually says a lot about you!):

On the next screen, decide how you prefer to work. The default is to Use Git from the Windows Command Prompt, which is a safe choice. The last option is interesting for those among you that would want to use the same *nix tools whether you work in Git BASH, cmd, or another shell:

  1. Choose your preferred transport backend for HTTPS. This is usually relevant for enterprises:
  1. When you reach the following screen, read carefully. This is where many hair loss issues begin and end. The last option is recommended (setting core.autocrlf to false):
  1. Click on Next >:
  1. Click on Next >:

There you go! Now you've got access to Git BASH, your new best friend, right next to PowerShell:

Look how beautiful that prompt looks in the following screenshot:

Once again, let's see how this is done with Linux.

Linux (shell)

On Linux, simply fire up your Terminal and use apt-get, pacman, yum, dpkg, portage, and friends to install Git. Here's how simple the installation looks on Ubuntu when running the sudo apt install git command:

Once you have accepted, apt will install everything you need. After that, the git command will be available for use.

Configuring git