
上QQ阅读APP看书,第一时间看更新
Put it together
Now, let's put the frontend and the backend of the Messages App together. We will populate the messages list in the UI by querying messages from the database and save new messages to the database after clicking the Add button in the UI.
The following are the things we need to do to make the integration work:
- Place the frontend and backend code in the same project
- Add APIs to the backend for getting messages and saving new messages
- Add the ability to communicate with the backend to the frontend