Flask/React Twitter grid
FRTG - Flask/React Twitter Grid
- Package-based Installation
- Development Environment
This is a basic project for serving a npm-managed React app with Flask. It renders twitter query results in a grid in a way convenient for diplaying on a kiosk or large screen.
Create a (python 3) virtualenv and install using one of the following methods:
$ pip install frtg
$ python setup.py sdist $ pip install dist/frtg-x.y.z.tar.gz
config-example.json as a template to
create a configuration file.
When running the server an environment variable called
CONFIG_FILENAME and containing the path to this
configuration file must be present.
Starting the Server
CONFIG_FILENAME=config.json FLASK_APP=frtg flask run
Note: if you are running from a source distribution and didn't install it in your virtualenv, you should execute the above from the top-level folder.
Alternatively, using the provided
might sometimes be convenient when developing:
CONFIG_FILENAME=config.json python frtg/app.py
CONFIG_FILENAME=config.json python -m frtg.app
These notes are for setting up a development environment.
Create a (python 3) virtualenv and install the requirements:
$ pip install -e .
... and, to install additional libraries used by the test scripts:
$ pip install -r requirements.txt
Set up the node environment:
In a fresh environment, or whenever the ui sources are changed:
npm run build
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size frtg-0.5.2.tar.gz (188.5 kB)||File type Source||Python version None||Upload date||Hashes View|