/localdata-tiles

A tileserver for LocalData

Primary LanguageJavaScript

localdata-tiles

This is an experimental tileserver for use with the nodetiles-core library, a fully-featured map rendering library for Node.js. It servers tiles and utfgrids for LocalData surveys

Install instructions

To run locally on OS X:

Clone and run npm install. You may need to run brew install cairo and confirm the installation succeeded (check brew doctor). You may also need to brew install fontconfig and pixman.

If you get more Cairo-related errors, you may need to explicitly say where to look for libraries: export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig

Copy sample.env and update the values to match your environment.

Using env-run, run envrun -e your-brand-new.env -p 3001 node server.js

To run on heroku:

Push to heroku set the MONGO environment variable with a valid mongo connection string

Fakeroku

You'll need an SSL key and cert in:

/Users/coolguy/.ssh/localdata-key.pem
/Users/coolguy/.ssh/localdata-cert.pem

Then run PORT=4334 bin/fakeroku 3001