Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.59 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.59 KB

PowMash User Interface Web Application

Prerequisites

Setting the Environment

It is highly recommended to create a Python virtual environment to run this web application using venv or virtualenv. If you are already using other version of Python than 3.5+, it is recommended to use Python version manager such as pyenv or p.

If you are set with the prerequisites, install the dependencies.

$ pip install -r requirements.txt

You should configure the application settings before running the application. This application reads the configuration from a file whose path is the value of environment variable POWMASH_WEBAPP_SETTINGS.

There is an example for application settings file, named settings.example.py. Copy this file, edit the copied file, and set the value of environment variable POWMASH_WEBAPP_SETTINGS to the path to the copied file. In POSIX environment, you can do like this before executing the script:

$ export POWMASH_WEBAPP_SETTINGS=/path/to/settings.you.py

Running the Application

It's just a simple Flask application. The simplest way is:

$ python powmash-webapp.py

Developing

A PyCharm project directory exists in this repository. If you are free with PyCharm, it's just okay to open the root directory in PyCharm to do your work.