Public | Automated Build

Last pushed: 8 months ago
Short Description
Short description is empty for this repo.
Full Description

Alerted (Web)

Find out about emergency information that might impact you.

This is the code for the web application side of things written using Python/Django.


The fastest way to get going is to use Vagrant.

Download Vagrant and VirtualBox; install them. Then...

$ cd alerted-us-web
$ vagrant up

This will install all known dependencies and configure a database for you. Next, you can
log into the alerted-us-web VM and start Django's development server:

$ ssh -oPort=2222 vagrant@localhost  # Default pw is 'vagrant'
$ source /opt/python/venv/bin/activate
$ cd /vagrant
$ python migrate
$ python createsuperuser
$ python runserver

Browse to and you should see the index page, or for the admin UI.

Tests can be run like so:

$ python test

The virtual framebuffer might not start automatically (is usually does). If this is the case, simple start it:

$ sudo /etc/init.d/xvfb start

Xvfb is needed for a limited number of Selenium tests.

You will probably also need to load some geocodes to test geospatial queries.

$ cd apps/alertdb
$ python

The script will download 100MB of data, so don't do it over 3G :)

What's next?

  • Continue refactoring API and Android app
  • Publish API docs (even basic ones just for auth)
  • Better isolate the apps (microservices)
Docker Pull Command
Source Repository