Skip to content
かがみ edited this page Jan 17, 2018 · 1 revision

Developing

This plugin needs to work with poi server. Steps:

  1. Make sure you're using dev mode of poi so that the SERVER_HOSTNAME is pointed to 127.0.0.1
  2. Install mongodb
  3. Start mongodb, assuming ~/tmp/mongodb is the database file path:
    mongod --dbpath ~/tmp/mongodb
  4. Clone poi server repo, install npm dependencies, and launch server. Using process manager like PM2 could be better
    pm2 start --name 'poi-server' index.js --watch

Now the poi server is ready for data transfer, and your reports will go into the database you started.

Building new reporters

The existing reporters are good example to start with.

You will need to add handler on server side

Clone this wiki locally