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.
Links to other MapRules Repos
...see the Architecture for a technical description of the repos work together
sudo apt-get update sudo apt-get install -yq sqlite3 libsqlite-dev
sudo yum update sudo yum install -yq
brew install sqlite3
...use this for guidance!
use node 10.x
# 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
install node dependencies
yarn install -G sqlite3 && yarn install
build docs & ui
Migrate the db and seed it with fixture data
NODE_ENV=development yarn fixture
Spin up the server
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'
configure for production
Edit the process.yml with desired hosts & ports...