jranalli / PYroMat-live

PythonAnywhere Hosted Flask App demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

PythonAnywhere Hosted Flask App demo

License:Other


Languages

Language:JavaScript 49.5%Language:Python 31.0%Language:HTML 12.1%Language:CSS 7.5%