-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

A Blueprint for Production-Ready Web Applications
By :

To manage members, we need an API that provides routes to create a member (register), confirm the email address, change the password, request a password reset, and reset a password.
We’ll add this API via a blueprint for the member, containing registration, email confirmation, changing password, and password reset functionality.
To begin, we should create a blueprint for all the member routes, it is created with the following code in backend/src/backend/blueprints/members.py:
from quart import Blueprint blueprint = Blueprint("members", __name__)
The blueprint then needs to be registered with the app, by adding the following to backend/src/backend/run.py:
from backend.blueprints.members import blueprint as members_blueprint app.register_blueprint(members_blueprint)
With the blueprint created, we can now add the specific functionality as routes.
In our app, we want users...