Lesson Weekend

In section 1 of Intermediate JavaScript, we learned how to build an address book. The business logic for that application included the ability to create, delete and even update contacts. In other words, we added what is called CRUD functionality.

CRUD stands for:

  • Create: In the example of an address book, we should be able to create new contacts.
  • Read: We should also be able to read information about an individual contact (as well as a list of contacts).
  • Update: We should be able to update a contact. For instance, a contact's phone number might change.
  • Delete: We should be able to delete a contact if the contact's information is no longer needed in our address book.

Not all applications require CRUD functionality. However, it's so common that entire frameworks are built around being able to easily manage these actions in our applications.

During this section, we'll build a basic record store application that has full CRUD functionality. We'll start by looking at the routes our application will need. Next, we'll use Sinatra to illustrate how routing works. Finally, we'll add the backend logic and tests we need to complete the application. We'll mock a database just as we did in the first section of Intermediate JavaScript. Then, over the rest of this course, we'll gradually build out our record store application further, including adding a database, a Rails version of the application, and many other features.

CRUD stands for:

  • Create
  • Read
  • Update
  • Delete

Lesson 4 of 37
Last updated July 28, 2022