Map publishing platform
Clone this repository locally, install Vagrant and run vagrant up
inside the repository base directory.
If you have a Ubuntu environment, its possible to install the dependencies by running ./Vagrant-setup/bootstrap.sh
via terminal, but it can cause conflicts with other installed packages.
DomeGIS uses Carto's fork of node-mapnik (lastest releases), a requirement of Windshaft module.
We use Sequelize to handle models and migrations in PostgreSQL. To migrate a database, run:
sequelize db:migrate
You can set database credentials at config/config.json
.
The config
directory contains the following files:
config.json
: db connection for Sequelize migrations;default.json
: PostgreSQL, Windshaft and other platform configs.For production environments, set NODE_ENV=production
. If you want to override any default config options, create a config/production.json
based on config/default.json
. Some config options can be defined also as environment variables:
NODE_ENV
: development
(default), staging
, test
, production
;HOST
: site hostname (default: localhost
);PORT
: server port (default: 3030
);SUBDOMAINS
: available subdomains, useful for tile requests (default: a,b,c
).When running locally, configure the file /etc/hosts
to redirect {a,b,c}. subdomains requests, for example:
127.0.0.1 localhost a.localhost b.localhost c.localhost
We use Mocha as test suite, use the following command to run all tests:
npm test
You can specify an expression to run only a limited set of tests. For example, the command bellow test the maps
service:
npm test -- -g "maps"
This application is based on FeathersJS framework, you can check the documentation here.
This project is maintained by Miguel Peixe and Vitor George.
Please check the list of contributors on Github.