We here at Rescue Maps strive to help those caught in distress situations by creating a network of organizations and people who can share their resources in their proximity for the needy, thus speeding up the overall process of disaster relief
Clone the repository into your system by browsing to this repository ...
npm
Linux System
Django 2.1
Postgresql
Python
d3.js - A javascript library
Leaflet.js
- Install leaflet using
$ npm install leaflet
- Install the d3 package via npm
npm install d3
npm install d3-hexbin
npm install leaflet
- To install Postgresql
$ sudo apt-get update
$ sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql contrib
- Log into an interactive Postgres session by typing:
$ sudo -u postgres psql
- Create DATABASE using
postgres=# CREATE DATABASE flood_data;
- Next, we will create a database user which we will use to connect to and interact with the database.
postgres=# CREATE USER username WITH PASSWORD 'password';
-
To connect with the Postgresql database, follow this guide here
-
Now, when creating a USER for the database, match the database name, username and password from DATABASE Section in the settings.py file
-
For python 3, install virtual environment using
sudo pip3 install virtualenv
- Move into the directory of the cloned django project
cd ~/(project_name)
- create a virtual environment to store our Django project's Python requirements by typing:
$ virtualenv myprojectenv
- Activate virtual environment using
$ source myprojectenv/bin/activate
- you can install Django with pip
$ pip3 install django
- Install the psycopg2 package
$ pip install django psycopg2
-
Browse to the directory of the project in your terminal
-
Now you're good to go, fire up the application from
python manage.py runserver
...