Advanced TypeScript Programming Projects
上QQ阅读APP看书,第一时间看更新

Creating a React Bootstrap project with TypeScript support

As we discussed in Chapter 2, Creating a Markdown Editor with TypeScript, it is a good idea to start off by gathering the requirements of the application that we are going to write. Here are the requirements for this chapter:

  • The user will be able to create new details of a person or edit them
  • These details will be saved to a client-side database
  • The user will be able to load the list of all people
  • The user will be able to delete the personal details of a person
  • The personal details will consist of the first and last names, the address (made up of two address lines, the town, the county, and the zip code), the phone number, and the date of birth
  • The personal details will be saved to the database
  • The first name will be at least one character and the last name will be at least two characters
  • Address line 1, town, and county will be at least five characters
  • The zip code will conform to the American standard for most zip codes
  • The phone number will conform to the standard American phone format
  • The user can clear details with the click of a button