Custom mapping presets and validation rules
MapRules is an api service that allows mappers and mapping campaign managers to define custom mapping presets and validation rules usable in OpenStreetMap Editors.
The goal of MapRules is to simplify OpenStreetMap feature tagging and validation.
...see the Architecture for a technical description of the repos work together
ubuntu!
sudo apt-get update
sudo apt-get install -yq sqlite3 libsqlite-dev
centos!
sudo yum update
sudo yum install -yq
mac!
brew install sqlite3
windows!
...use this for guidance!
# with nvm installed and from root of MapRules directory...
nvm install #only run first time if you don't have the right version
nvm use
...see here for setting up nvm on a linux machine ...see here for setting up nvm on a windows machine
yarn install -G sqlite3 && yarn install
yarn build
NODE_ENV=development yarn fixture
yarn dev
yarn test:fixture # tests need db w/data...
test with docker image
docker build -f Dockerfile . && docker run maprules /bin/bash -c 'npm run test:fixture'
Edit the process.yml with desired hosts & ports...