pip install bull. This installs thebullcommand, which helps setup your environmentbull setup. This creates a directory namedbullwith the following contents:app.py: the main application script.get_appcan be used to runbullas a WSGI applicationconfig.py:bull's configuration file. This must be edited to contain your installation-specific configuration details.filesdirectory: The directory that contains the files for your digital products
- Add product entries to the database (use
scripts/populate_dbas a model) - (Optional) Create an admin user for viewing
/reportsby runningscripts/create_user.py - Add
bullto your web server's configuration - Profit! (...literally)
bull supports simple sales analytics at the /reports endpoint.
It requires authorization, which in turn requires you to create (at
least one) user using the scripts/create_user.py script. To see the
reports, hit /login, log in, and from then on you can go directly to
/reports to see reporting data. You should be good to go after that,
and no one else will be able to see the reports.
If for some reason you need to logout, there is also a /logout
endpoint which will log you out (which should use HTTP POST instead of
GET, but whatever).