Development for the hosting of the PYroMat API and live webpages.
Follow directions for your operating system at the Python site.
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
pip install pyromat
pip install flask
Open a terminal (Windows)
set FLASK_APP=app
set FLASK_DEBUG=True
flask run
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/
A demo is currently hosted at PythonAnywhere and a live version is hosted at PYroMat
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.