RC Select is a tool to help program and emergency response teams choose the right solution for their data management needs. A catalogue of vetted options gives users an honest picture of the pros and cons of each option, and a self-guided tool picker translates program needs into technical requirements.
To install the app locally, you will need a local PostreSQL server. The deployment expects the environment variables DB_HOSTNAME and DB_PASSWORD to point to this instance. The Django migrations script will create the necessary database structures for an initial state.
-
Set
DEBUG
appropriately insettings.py
.If deploying to production, setDEBUG=False
. -
Add your host to
ALLOWED_HOSTS
to avoid CRSF errors. -
Run
python manage.py collectstatic
to gather static files. -
Create a python virtual environment and install required python modules.
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Run the database migrations to create database structures
python manage.py migrate
- Create an administrative user for the application. This step is needed before you can attempt to import data.
python manage.py createsuperuser
- Run the application
python manage.py runserver
There is a sample set of data in the seed_data
subdirectory that can be loaded directly to the database tables via your favorite SQL tool (e.g. DBeaver). Please note that this sample data is incomplete and is provided to help illustrate potential capabilities of the tool.
Following is a good order to load the tables:
- tool_picker_language.csv
- tool_picker_tool.csv
- tool_picker_tool_languages.csv
- tool_picker_toolfeature.csv
- tool_picker_tool_tool_features.csv
- tool_picker_toolresource.csv
- tool_picker_tool_tool_resources.csv
- tool_picker_tool_tool_resources.csv
- tool_picker_toolattributedefinition.csv
- tool_picker_toolpickerresponses.csv