The Application: Running the Code

Take a look at how to start the application and test the functionality in the shell.

We'll cover the following

Code

To run the shell, we’ll use the command rebar3 shell. With this, the shell will start running and we can test the functions that we have created.

Let’s start off with a few basic functions:

  1. bookstore_db:setup().
  2. bookstore_db:add_book("978-0-7546-7834-2", "Behind Human Error", "David D Woods").
  3. bookstore_db:find_book_by_author("Woods").
  4. bookstore_db:teardown().

Get hands-on with 1200+ tech skills courses.