Summary
We have looked at the important impact of some of the early decisions we make about setting up our environment and project organization. We can—and should—constantly adapt our environment and application to meet changing needs. We used pdm
to leverage some of the newest tools to run our server in a well-defined and isolated environment.
In our example, we then started to build our application. Perhaps we were too hasty when we added our /book
route because we quickly realized that we needed the endpoint to perform differently. Rather than breaking the application for existing users, we simply created a new group of blueprints that will be the beginning of /v2
of our API. By nesting and grouping blueprints, we are setting the application up for future flexibility and development maintainability. Going forward, let's stick to this pattern as much as possible.
We also examined a few alternative approaches for organizing our application logic. These early...