GitXplorerGitXplorer
K

silkroad

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
f1c787c0b0ccbc205c6f99f6bab03d2538ba6423

Merge remote-tracking branch 'origin/usf-colors'

KKevOrr committed 7 years ago
Unverified
95b8e5e7c89df4782b8174f045590c16fae44a8d

Deleted now-unused files

KKevOrr committed 7 years ago
Unverified
4807ee47bab4a4b94db95fd8b265e64b6d70e196

Added title to /products

KKevOrr committed 7 years ago
Unverified
593c498b8c3e04ad15fc96e714c960be9b468745

end parens out of place, fixed the glitch

committed 7 years ago
Unverified
899e70add6b6472c5da95ccb1780113bd21c575c

Fixed store hourly query

committed 7 years ago
Unverified
3ad52d582723b5a88a0dded3b7a97dfce90c001e

Added labels for filter type and values and cleaned up unused code

committed 7 years ago

README

The README file for this repository.

Installation

Optional:

virtualenv -p python3 venv
. venv/bin/activate

Install python requirements using pip:

pip install -r requirements.txt

Note: if you are not using a virtualenv and pip complains about permissions, add the --user flag to pip install.

Setup customconfig.py to override the defaults in appconfig.py by creating a single class named Config. Example:

class Config:
    SQLALCHEMY_DATABASE_URI = 'postgresql://user:pass@host:port/dbname'

    PSYCOPG2_LOGIN_INFO = {
        'host': 'localhost',
        'port': 5432,
        'dbname': 'my_database_name',
        'password': 'my_password'
    }

Running

export FLASK_APP=app.py
flask <command> [<args>]

Commands

  • initdb Initializes databse with random information from datagenerator.py
  • make-admin Create a single admin user
  • dbusertest Prints usernames in the database
  • run Runs the flask web server
    • --debugger/--no-debugger Turn on (or off) the flask debugger. Off by default.
  • shell Run a python interpreter in the application environment