Git Product home page Git Product logo

otm-vagrant's Introduction

otm-vagrant

Vagrant files and scripts for setting up a local testing and development instance of OpenTreeMap (OTM)

NOTE: This repository is intended only for development and testing. It is not intended for setting up a production OTM server.

To get started, do the following steps:

  • Install Vagrant and VirtualBox
  • Clone this repository
  • Create a Google Maps API key and replace the GOOGLE_MAPS_KEY in configs/etc/init/otm-unicorn.conf with the key you created
  • Create a Esri API credentials and replace the ESRI_CLIENT_ID and ESRI_CLIENT_SECRET in configs/etc/init/otm-unicorn.conf with the credentials you created
  • Run the script get-repos.sh
  • Run the command vagrant up

This will give you a working installation of OTM, but without any maps.

To create a map do the following steps:

  • Create a user from your web browser (the URL should be localhost:7070). The email will be written to a file in /usr/local/otm/emails/ inside the VM
  • SSH into the vagrant VM with vagrant ssh
  • Read the email with your user activation link (cat /usr/local/otm/emails/*) and activate the user by pasting the URL in it into your browser
  • Change to the opentreemap directory using cd /usr/local/otm/app/opentreemap
  • Create a tree map using the create_instance management command, passing the username you created above. For example, to create a tree map with name "Philadelphia", url name philly, and admin user "sue", centered at longitude -75.1 and latitude 40.0:
    ./manage.py create_instance Philadelphia --url_name=philly --user=sue --center=-75.1,40.0

For further help on how to use create_instance, run ./manage.py create_instance -h

Windows

To run on Windows you must install Cygwin (including rsync and openssh) and start a Unix shell like bash to run the install scripts.

On Windows the OTM source code is shared with the virtual machine via a one-way rsync from Windows host to Ubuntu guest. When you update source code files you must run vagrant rsync from your Windows Unix shell. See also vagrant rsync-auto.

otm-vagrant's People

Contributors

maurizi avatar rickmohr avatar jwalgran avatar andrewbt avatar kdeloach avatar themgt 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.