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 manage.py migrate $ python manage.py createsuperuser $ python manage.py runserver 0.0.0.0:8000
Tests can be run like so:
$ python manage.py 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 geocode_tools.py
The geocode_tools.py script will download 100MB of data, so don't do it over 3G :)
- Continue refactoring API and Android app
- Publish API docs (even basic ones just for auth)
- Better isolate the apps (microservices)