A module that automatically syncs geographical information standards managed on GitHub to https://register.geostandaarden.nl
The Guide for information model owners and maintainers [NL] explains how to add information models to GitHub and offer them for tracking to https://register.geostandaarden.nl
The Guide for registry maintainers [NL] explains how to setup tracking of new information models by the register.
This modules runs on Linux and macOS. You are encouraged to create a staging and production environment on your server as follows
-
create your
stagingdirectorycd /var/www/geostandaarden/ mkdir staging -
create a virtual environment called e.g.
tr_stagingand activate itcd staging virtualenv tr_staging source tr_staging/bin/activate -
Clone this repository and install the module in editable mode with
pipasgit clone https://www.github.com/geonovum/technisch-register cd technisch-register pip install -e ./The
-eflag makes sure that "any changes you make to the code will immediately apply accross the system". In other words, you don't have to install the module every time you update the code.pipwill automatically install the project's dependencies (seesetup.py). -
Switch to the
stagingbranchgit checkout staging -
Rename
technisch_register/settings-example.pytotechnisch_register/settings.pyand provide the needed paths. -
Run
technisch_register/initialize.pyto create the required directories and build the registercd technisch_register python initialize.py -
Copy
technisch_register/cgi-bin.pyto your server'scgi-binfolder, rename it tobuild.pyand adapt the paths tostagingandproductionenvironments as needed. -
Build the
productionenvironment by following steps 1 - 6 (except 4) while changing all mentions ofstagingtoproduction
The main script is build.py. It reads a GitHub JSON payload from stdin. Run build.py as
cd technisch_register
cat github-payload.json | python build.py
Install pytest and run the tests as
pip install pytest
py.test tests/
