Playing around with the new application
At this point, we have two modules completely refactored, so it's a good time to take the app for a test drive and check out how the newly added query support works. To get the app up-and-running, first build it via docker-build.sh
and then start it up via launch.sh
. You should create a new BookstoreUser
and then a new book via the REST API, being sure to add an inventory to it. Refer to the Interacting with the Book endpoint section from Chapter 1, Building a Better Reactive App, if you need help remembering the endpoint calls to make. Then, using the ID of the newly created book, craft up the correct JSON to create a new SalesOrder
and then use the REST API to do that.
With those three entities created, you can start to use the query-API calls. The API stayed the same in relation to the query calls, so you can use the instructions from Chapter 1, Building a Better Reactive App, to run queries. Try looking up books by author and then try looking up...