Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.79 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.79 KB

soda-postgres

Uses node-soda2-parser to provide a Socrata-style SODA2 API in front of a postgres database

Installation

  1. Clone the repo
  2. Install dependencies via npm install
  3. Create a copy of .env.sample named .env and fill in the values, pointing it to a postgres database with postgis enabled

Usage

To run a SODA2 API server, use node index.js Then query the API using SODA2 calls, ie. http://localhost:8080/resource/table_name?$select=*&zip_code=19141

Examples

A demo server with the Heart Healthy Screening Sites dataset provides the following examples.