Giter Club home page Giter Club logo

landmapper's Introduction

Land Mapper

Simple Woodland Discovery

Installation

Via Vagrant

Vanilla Bootstrap:

  • Clone marineplanner-core onto your local system
  • Copy scripts/configure_project.sh.template to scripts/configure_project.sh
  • make configure_project.sh executable
  • run your new configure_project script (may need to open in vim and enter :set fileformat=unix)
    • ./configure_project.sh landmapper landmapper
  • vagrant up
  • wait 30 minutes (or more if you don't have the base box or have a slow connection)
MAC

If you have Vagrant installed on Mac:

git clone https://github.com/Ecotrust/marineplanner-core.git
cd marineplanner-core/scripts
cp configure_project.sh.template.mac configure_project.sh
chmod +x configure_project.sh
./configure_project.sh
vagrant up
Linux

If you have Vagrant installed on Linux:

git clone https://github.com/Ecotrust/marineplanner-core.git
cd marineplanner-core/scripts
cp configure_project.sh.template configure_project.sh
chmod +x configure_project.sh
./configure_project.sh landmapper landmapper
vagrant up
Run test server
vagrant ssh
cd /usr/local/apps/marineplanner-core/
source env/bin/activate
cd marineplanner
python manage.py runserver 0.0.0.0:8000

Then go here

On Standalone Server (Ubuntu 16.04 LTS)

Initial setup and downloading MP Core

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install git
  4. sudo mkdir /usr/local/apps
  5. sudo chgrp adm /usr/local/apps
  6. sudo chmod 775 /usr/local/apps
  7. cd /usr/local/apps
  8. git clone https://github.com/Ecotrust/marineplanner-core.git

Install PostgreSQL/PostGIS and a few Dependencies

  1. cd /usr/local/apps/marineplanner-core/scripts/
  2. sudo chmod +x vagrant_provision0.sh
  3. sudo ./vagrant_provision0.sh xenial 3.5.0 9.5 #Ubuntu xenial, GEOS 3.5.0, PostgreSQL 9.5

Installing Your App

  1. cd /usr/local/apps/marineplanner-core/apps
  2. git clone https://github.com/Ecotrust/landmapper.git
  3. cp landmapper/scripts/production_configure.sh ../scripts/
  4. cd ../scripts/
  5. ./production_configure.sh landmapper landmapper
  6. Upload the taxlot data sql (GIS/projects/LandMapper_Woodland_Discovery_2017/taxlot_planning_grid.sql)
  7. psql -U [dbusername] -d marineplanner -f ../apps/landmapper/data/taxlot_planning_grid.sql

Serving Your App

  1. sudo apt-get install libpcre3 libpcre3-dev uwsgi uwsgi-plugin-python3 nginx
  2. pip3 install uwsgi
  3. sudo cp /usr/local/apps/marineplanner-core/apps/landmapper/deploy/landmapper.conf /etc/nginx/sites-available/landmapper
  4. sudo rm /etc/nginx/sites-enabled/default
  5. sudo ln -s /etc/nginx/sites-available/landmapper /etc/nginx/sites-enabled/landmapper
  6. sudo cp /usr/local/apps/marineplanner-core/apps/landmapper/deploy/rc.local.template /etc/rc.local
  7. sudo touch /var/log/nginx/landmapper.access.log
  8. sudo touch /var/log/nginx/landmapper.error.log
  9. sudo chmod 640 /var/log/nginx/*
  10. sudo chown www-data:adm /var/log/nginx/*
  11. Reboot your system.

landmapper's People

Contributors

pollardld avatar rhodges avatar

Watchers

 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.