MichaelDao / Twitter-Heatmap

visualise tweet data on google maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter #HashTag map and analysis

Visualize all the tweets worldwide with this quickstart guide

Quickstart

Run the following commands to bootstrap your environment

git clone https://github.com/michaeldao/vicSafe
cd vicSafe
pip install -r requirements/dev.txt
cp .env.example .env
npm install
npm start  # run the webpack dev server and flask server using concurrently

You will see a pretty welcome screen on http://localhost:5000

Deployment

Do not deploy with the quickstart, instead do this for cloud hosting. Deployment

To deploy::

export FLASK_ENV=production
export FLASK_DEBUG=0
export DATABASE_URL="<YOUR DATABASE URL>"
npm run build   # build assets with webpack
flask run       # start the flask server

In your production environment, make sure the FLASK_DEBUG environment variable is unset or is set to 0.

We used ec2 in our example

To deploy::

export FLASK_ENV=production
export FLASK_DEBUG=0
export DATABASE_URL="<YOUR DATABASE URL>"
npm run build   # build assets with webpack
flask run       # start the flask server

In your production environment, make sure the FLASK_DEBUG environment variable is unset or is set to 0.

About

visualise tweet data on google maps

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 52.1%Language:HTML 31.6%Language:JavaScript 8.4%Language:CSS 7.4%Language:Mako 0.5%