Giter VIP home page Giter VIP logo

floodmapsv2's Introduction

floodmapsv2

Replacement floodmaps website

Installation

On Debian or Ubuntu (e.g. turnkeylinux core VM)

apt-get install apt-utils postgresql python-setuptools python-virtualenv libapache2-mod-wsgi libpq-dev python-dev gcc postgis postgresql-8.4-postgis libproj0 libproj-dev gdal-bin libgdal1-dev libgeos-dev proj-bin

Create a folder to hold the application

mkdir -p /opt/

Download source or download and copy zip file

git clone https://github.com/VincentHussey/floodmapsv2.git

Create a virtual environment

cd /opt/floodmapsv2

virtualenv env

Database configuration

It may be necessary to reinitialise the database using UTF8 encoding (pg_dropcluster --stop 8.4 main). It may be necessary to modify pg_hba.conf

Run in a virtual environment

source env/bin/activate

Install required files

pip install -r requirements.txt

Create the database

(modify as necessary)

su postgres

cd /opt/floodmapsv2/utils

./create_database_debian.sh

Enter password for user flood twice

Check settings and locations for gdal, geos & proj

find / -name "proj"

Create tables and synchronise the database

It may be necessary to set the locale e.g

dpkg-reconfigure locales & choose en_US.UTF-8, en_GB.UTF-8, en_IE.UTF-8

LC_ALL=en_US.UTF-8;export LC_ALL

ref. https://code.djangoproject.com/ticket/16017

cd /opt/floodmapsv2/floodmapsv2/floodmapsv2/

../manage.py syncdb

../manage.py migrate floodmaps

floodmapsv2's People

Contributors

vincenthussey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.