This chapter will present four projects that will get more and more complex. You have already seen the first two projects in action: incr and adder. The third project, named login, shows how to create a login page for authentication on a website.
The fourth project, named yauth, extends the login project adding the CRUD handling of a list of persons. Its behavior is almost identical to that of the auth project in Chapter 4, Creating a Full Server-Side Web App. Each project will require from 1 to 3 minutes to download and compile from scratch.
Getting started
To start all the machinery, a very simple statement is enough – the body of the main function:
yew::start_app::<Model>();
It creates a web app based on the specified Model, starts it, and waits on the default TCP port. Of course, the TCP port can be changed. It is a server that will serve the app to any browser navigating to it.