aparabolica / DomeGIS

Map publishing platform
MIT License
2 stars 1 forks source link
feathersjs gis-platform nodejs postgis

DomeGIS

Map publishing platform

Install

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.

Dependencies

DomeGIS uses Carto's fork of node-mapnik (lastest releases), a requirement of Windshaft module.

Migrate the database

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.

Configuration

The config directory contains the following files:

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:

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

Running tests

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.

License

MIT

Authors

This project is maintained by Miguel Peixe and Vitor George.

Please check the list of contributors on Github.