Getting ready for deployment
In this chapter, we’ll create an Online Grocery application that can be deployed to different platforms. The application is an API-based type with administration, login, inventory, stocking, order, and purchase modules designed for small business transactions of a small shopping or grocery store.
The Peewee ORM builds the application’s model and repository layer. To utilize the standard Peewee module, install it and the psycopg2 driver using the following pip command:
pip install psycopg2 peewee
The Peewee ORM provides the standard INSERT, UPDATE, DELETE, and SELECT transactions, thus including the psycopg2 driver as a dependency library. Let’s begin structuring the model layer of the Peewee ORM.
Classes and methods for the standard Peewee ORM
Our Online Grocery application is deployed to a Gunicorn server and uses the standard Peewee helper classes and methods to establish the model layer and the repository classes. Here...