Chapter 2. Structuring, Testing, and Deploying an Application

In this chapter, we will cover the following topics:

  • Exiting from an app
  • Parsing command-line arguments
  • Structuring an application
  • Using a library from within your app
  • Microtesting your code with assert
  • Unit testing a Polymer web app
  • Adding logging to your app
  • Documenting your app
  • Profiling and benchmarking your app
  • Publishing and deploying your app
  • Using different settings in the checked and production modes

Introduction

In this chapter, we focus mainly on all the different tasks in the lifecycle of your project that make it more professional, and will save much more time in the maintenance phase. This includes structuring the project, installing a logging tool in it, testing, documenting, profiling, and publishing it. However, first we see how we can end an app, and how a server app can take command-line arguments.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset