Skip to content

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.

License

Notifications You must be signed in to change notification settings

kodujdlapolski/otm-core

 
 

Repository files navigation

OTM2 open source logo

Mapadrzew.pl

This is Polish instance of the Open Tree Map forked from https://github.com/OpenTreeMap/otm-core, hosted under mapadrzew.pl.

The project is maintained by Koduj dla Polski team.

Installation

The easiest way to set up the project is to use docker-compose which will build containers for all services that are required. Docker-compose can be installed easily on most Linux/MacOS systems: https://docs.docker.com/compose/install/

otm-core

Fetch the ecobenefits repository to the services/ dir.

cd otm-core/
git clone git@github.com:kodujdlapolski/ecobenefits.git services/ecobenefits

Copy local settings from the template.

cp opentreemap/opentreemap/settings/local_settings.py.template opentreemap/opentreemap/settings/local_settings.py

Run build for all Docker containers. This may take a while.

docker-compose build

When containers are ready, start all services:

docker-compose up

Now you can populate the PostgreSQL database with data that will be useful for development.

docker-compose run core ./opentreemap/manage.py migrate
docker-compose run core ./opentreemap/manage.py create_system_user
docker-compose run core ./opentreemap/manage.py createsuperuser --username super --email example@koduj.pl
docker-compose run core ./opentreemap/manage.py create_instance warszawa --url_name warszawa --user super --center=21.012230,52.229675
docker-compose run core ./opentreemap/manage.py shell < scripts/prepare_waw_instance.py

Last step is to prepare the static/javascript files for project.

docker-compose run core python opentreemap/manage.py collectstatic_js_reverse
docker-compose run core yarn run build
docker-compose run core python opentreemap/manage.py collectstatic --noinput

ecobenefits

Please refer to README in ecobenefits repository to learn how to set up this service: https://github.com/kodujdlapolski/ecobenefits/blob/master/README.md

Useful commands

Stop all services

docker-compose down

Execute command in particular service

docker-compose run ecobenefits python run.py

Remove all data from volumes (purges the database)

docker-compose down -v

For full installation instructions for the original project, see the Github wiki.

Other Repositories

This repository (ie, otm-core) is but one of a few separate repositories that together compose the OpenTreeMap project. Others include:

Developer documentation

About

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 63.4%
  • JavaScript 19.8%
  • HTML 12.3%
  • CSS 4.5%