Skip to content
visualise tweet data on google maps
Python HTML JavaScript CSS Mako
Branch: master
Clone or download
Pull request Compare This branch is even with MichaelDao:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.pytest_cache
assets
migrations
requirements
tests
vicSafe
.env.example
.eslintrc
.gcloudignore
.gitignore
.isort.cfg
.travis.yml
LICENSE
Procfile
README.md
autoapp.py
npm-debug.log
package-lock.json
package.json
requirements.txt
setup.cfg
webpack.config.js

README.md

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.

You can’t perform that action at this time.