Initial configurations and file structure

Since we know how a TypeScript application works, we can start with the basic configurations in place. To start our application development, let's create a folder called order-api and create a file called package.json inside it with the following information:

{ "name": "order-api",  "version": "1.0.0",  "description": "This is the example from the Book Hands on RESTful Web Services with TypeScript 3",  "main": "./dist/server.js",  "scripts": {    "build": "npm run clean && tsc",    "clean": "rimraf dist && rimraf reports",    "lint": "tslint ./src/**/*.ts ./test/**/*.spec.ts",    "lint:fix": "tslint --fix ./src/**/*.ts ./test/**/*.spec.ts -t verbose", "pretest": "cross-env NODE_ENV=test npm run build && npm run lint", ...

Get Hands-On RESTful Web Services with TypeScript 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.