Walkthrough

Let’s walk through an example usage of the searchinator.

Logging in

We can’t get to any other pages until we log in, so let’s do that. If we enter heinz for our username and doof as our password, we’ll be let in.

Note that you should consult your data dictionary (probably in inator_data.json) to find or create a valid username/password pair.

_images/0-login.png

Listing Inators

After logging in, we’re redirected to the list of inators. You can see a flashed message [1] at the top informing us that our login was successful.

_images/1-list-with-flash.png

Viewing an Inator

If we click on one inator, we can see its details.

_images/2-view.png

Back to the List

If we click the Inventory button at the top of the page it takes us back to the list of inators. Note that the “Successful login” flashed message is gone now. That’s the whole idea!

_images/2.5-list-without-flash.png

More Details

Let’s have a look at another inator. Maybe we decide that we’d like to delete this one. Let’s click that “Delete” button in the upper right.

_images/3-details.png

Delete Confirmation

We’re taken to a page asking if we’d like to delete the inator. Let’s say that we do! We’ll go ahead and press that red button.

_images/4-delete.png

Deleted!

After deleting the inator record, we’re redirected back to the list page. You can see we’ve received another flashed message informing us that the deletion was a success. You can also see that the dynamic-inator is gone now.

Now, let’s press the “Add New Inator” button.

_images/5-delete-success.png

Adding a New Inator

We’re taken to a page where we can fill out a form to create a new inator. Let’s fill it in with some details and press submit.

_images/6-add.png

Added!

Looks like adding the inator was a success! You can see that the junk-inator is in our inventory now.

_images/7-add-success.png

Refresh the Page

If we refresh the page, the flashed message is gone. You can do this with any page to get rid of flashed messages.

_images/8-list.png
[1]Keep in mind that flashed messages only last until the page is reloaded. They’re there to keep the user informed, but they don’t need to stick around.