21 Creating a React app, part 2
 
  
  
  
  - Using the current URL to select components
  
  - Consuming the orders web service
  
  - Creating a deployment server and persistent data storage
  
  - Deploying the application in a container
  
 
 
  
 In this chapter, I complete the React web application by adding URL routing and the remaining components before preparing the application for deployment in a container. For quick reference, table 21.1 lists the TypeScript compiler options used in this chapter.
 
  
 
21.1 Preparing for this chapter
 
 
 
21.2 Configuring URL routing
 
 
 
21.3 Completing the example application features
 
 
 
21.3.1 Adding the confirmation component
 
 
 
21.3.2 Consuming the orders web service
 
 
 
21.3.3 Completing the application
 
 
 
21.4 Deploying the application
 
 
 
21.4.1 Adding the production HTTP server package
 
 
 
21.4.2 Creating the persistent data file
 
 
 
21.4.3 Creating the server
 
 
 
21.4.4 Using relative URLs for data requests
 
 
 
21.4.5 Building the application
 
 
 
21.4.6 Testing the production build
 
 
 
21.5 Containerizing the application
 
 
 
21.5.1 Preparing the application
 
 
 
21.5.2 Creating the Docker container
 
 
 
21.5.3 Running the application
 
 
 
Summary