Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.83 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.83 KB

PYroMat Live

Development for the hosting of the PYroMat API and live webpages.

Development Setup

Install python

Follow directions for your operating system at the Python site.

Create virtual environment

cd <directory-of-pyromat-live>
python -m venv venv

Activation of the venv depends on OS. In the case of Windows, it's:

c:\<pyromat-live-dir>\> venv\Scripts\activate

Install dependencies

pip install pyromat
pip install flask

Activate the app

Open a terminal (Windows)

set FLASK_APP=app
set FLASK_DEBUG=True
flask run

Browsing the pages

Flask is now hosting the app on your computer. Based on the dev configuration, HTML is served by the flask app rather than a separate server. This means that we need to use a route to access the pages. So currently, subpaths on the URL serve a static HTML file, as mapped to the /live/ directory.

For example to navigate to index.html you'd visit:

https://127.0.0.1:5000/live/

Demo hosting

A demo is currently hosted at PythonAnywhere and a live version is hosted at PYroMat

License

Copyright (c) 2015-2022 Christopher R. Martin

Like its base project PYroMat, PYroMat-live is released under the GNU General Public License v3.0.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.