Technical requirements
The requirements for this chapter are the same as for Chapter 2, Exploring TypeScript. You should have a basic understanding of JavaScript and web technologies. You will once again be using Node and Visual Studio Code (VSCode).
The GitHub repository is at https://github.com/PacktPublishing/Full-Stack-React-TypeScript-and-Node. Use the code in the Chap3
folder.
Let's set up this chapter's code folder:
- Go to your
HandsOnTypescript
folder and create a new folder calledChap3
. - Open VSCode and go to File | Open, and then open the
Chap3
folder you just created. Then, select View | Terminal and enable the terminal window within your VSCode window. - Type the
npm init
command, as in the previous chapter, to initialize the project fornpm
, and accept all the defaults (you can also usenpm init -y
to accept all defaults automatically). - Type the
npm install typescript
command, as in the previous chapter, to install TypeScript.
Now...