Creating the project
Open a new command prompt, navigate to a convenient location, and create a folder named sportsstore
. Navigate to the sportsstore
folder, run the command shown in Listing 16.1 to initialize the project, and create the package.json
file.
Tip
You can download the example project for this chapter – and for all the other chapters in this book – from https://github.com/PacktPublishing/Mastering-Node.js-Web-Development. See Chapter 1 for how to get help if you have problems running the examples.
Listing 16.1: Initializing the project
npm init -y
Setting up the development tools
I am going to start by setting up a toolchain that will monitor the TypeScript files in the project, and then compile and execute them when there is a change. Run the commands shown in Listing 16.2 in the sportsstore
folder to install the development tool packages.
Listing 16.2: Installing the development tool packages
npm install ...