Use case – the BookSwap application
One of the most popular use cases of Go is for building web applications. Therefore, it is important to know how to build and test web applications. We will learn how to build our first use case web application: the BookSwap
application. We will explore and test the BookSwap
application in this and the following chapters.
This simple application allows users to sign up and register which books they have available. Other users can sign up for the application and view other users’ available books. They can then request to borrow a book from another user. The BookSwap
application then generates an order and sends it to the posting service for wrapping and shipping.
Figure 4.8 depicts an overview of the BookSwap
application:
Figure 4.8 – Overview of the book swap web application
The BookSwap
web application has some simple components:
- The user interacts with the
UserService
service endpoints...