Product-usage-flask-app

How to run the code

The code uses pipenv for dependency management.

  1. To run it the first time you'll need to create the virtual environment. To install the dependencies you can type:

pipenv install

  1. To activate the environment after successful installation of dependencies. Type:

pipenv shell

  1. If the app is being run for the first time the database will also need to be initialized. To properly initialize run:

python db.py

  1. Once the environment has been activated. The app can be run by simply typing:

flask run