Skip to content

fvanderbiest/thinkhazard_processing

 
 

Repository files navigation

ThinkHazard: Overcome Risk - Processing module

Travis CI Status

This module is intended to work together with the ThinkHazard module.

Getting Started

Create a Python virtual environment and install the project into it:

$ make install

Create a database and then populate it with:

$ make initdb

For more options, see:

$ make help

Use local_settings.yaml

The settings defined in the thinkhazard_processing.yaml file can be overriden by creating a local_settings.yaml file at the root of the project.

For example, you can define a specific database connection with a local_settings.yaml file that looks like this:

sqlalchemy.url: postgresql://www-data:www-data@localhost:9999/thinkhazard

Run tests

Prior to running the tests, one has to create a dedicated database, eg. thinkhazard_tests, and register it with:

$ echo "sqlalchemy.url: postgresql://www-data:www-data@localhost/thinkhazard_tests" > local.tests.yaml

Run the tests with the following command:

$ make test

About

Think Hazard: Overcome Risk - Processing module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.4%
  • Makefile 4.6%