osm-comments-api
API Server for OSM Comments and Notes
Last updated 3 years ago by batpad .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install osm-comments-api 
SYNC missed versions from official npm registry.

CircleCI

osm-comments-api

Expose a RESTful API for OSM Notes and Changeset Comments.

Setup

  • Get some data into your database, see https://github.com/mapbox/osm-comments-parser

  • Run npm install

  • Define an env var called OSM_COMMENTS_POSTGRES_URL eg export OSM_COMMENTS_POSTGRES_URL='postgres://localhost/osm-comments'

  • Run server with node run-server.js

  • Visit for eg. http://localhost:8888/api/v1/notes in your browser to see some JSON

Use as module

  • You can also import and use this in your node project as a module. A simple example:

    var api = require('osm-comments-api'); api.listen(8888);

Test

  • Set an environment variabled called TEST_PG_USER with your postgres username
  • Run npm test

Current Tags

  • 1.12.0                                ...           latest (3 years ago)

17 Versions

  • 1.12.0                                ...           3 years ago
  • 1.11.0                                ...           3 years ago
  • 1.10.1                                ...           3 years ago
  • 1.10.0                                ...           3 years ago
  • 1.9.1                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.2                                ...           3 years ago
  • 1.6.1                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (13)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |