gasparyanvazgen / online-store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robotics Store

Before running

Open CLI and to do these commands for you (examples for Linux/MacOS)

pip install -r requirements.txt

# in Windows use `set` instead of `export`
# these will be used at login
export USER=username
export PASSWORD=password

Run program with one of these example:

# in Windows use `set` instead of `export`

export FLASK_APP=run.py

# you can run this in debug mode with this:
export FLASK_DEBUG=1

flask run
python3 run.py
# OR
gunicorn run:app

In program default enabled DEBUG mode. You can change this in create_app() function at app/__init__.py file.

# Load the default configuration
app.config.from_object('config.DevelopmentConfig')

Change above code attribute value to 'config.ProductionConfig'. That you can see in config.py file.

About


Languages

Language:Python 54.0%Language:HTML 28.6%Language:JavaScript 16.7%Language:CSS 0.7%