Reviewing the final result of the project
At this point, you should have a fully functional REST API with Express and if your tests are passing, you can start using the application.
The about page
If you go to http://localhost:3000/about
, you will see the about page:
Figure 11.6 – Web browser screenshot
This page was served using the server render approach, and we are using the EJS template engine to render the page. We are using the whispers data from the database to render the page. The text Currently there are 3 whispers available is dynamic text that will change depending on the number of whispers in the database.
You can see the reference in the views/about.ejs
file:
<p>Currently there are <%= whispers.length %> whispers available</p>
Web interface
The web interface is a simple page where you can create, update, and delete whispers. You can access the web interface at http://localhost:3000
. It will start with...