Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.9 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.9 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
git clone https://github.com/timothyclemansinsea/soql-for-cartodb.git
cd soql-for-cartodb/
npm install

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.