Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 780 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 780 Bytes

Installation

Clone the repository

git clone https://github.com/ECSHackWeek/flask-altair-react-example
cd flask-altair-react-example

Install node/npm: https://nodejs.org/en/download/

Use npm to install frontend dependencies:

cd example/static
npm install

Install backend dependencies:

conda create -n example python=3.7
conda activate example
conda install flask

Running example

In one terminal window start webpack:

npm run watch

In a second terminal window go into the flask-altair-react-example directory, start flask server:

conda activate example
cd example
python application.py

In a web browser, go to the address

http://0.0.0.0:5000/

In the case where this address does not work, go to the address

localhost:5000