CartoDB-SQL-API/README.md

59 lines
1.3 KiB
Markdown
Raw Normal View History

SQL API for cartodb.com
========================
2012-06-02 04:19:02 +08:00
2013-10-01 00:02:48 +08:00
[![Build Status](https://travis-ci.org/CartoDB/CartoDB-SQL-API.png)](http://travis-ci.org/CartoDB/CartoDB-SQL-API)
2011-10-08 00:19:02 +08:00
Provides a nodejs based API for running SQL queries against CartoDB.
2012-06-02 04:19:02 +08:00
* Users are authenticated over OAuth or via an API KEY.
* Authenticated requests to this API should always be made over SSL.
2011-10-08 00:19:02 +08:00
2011-06-30 19:13:13 +08:00
core requirements
-------------
* postgres 9.0+
2013-10-01 00:44:33 +08:00
* postgis 2.0+
2012-10-04 18:43:12 +08:00
* cartodb 0.9.5+ (for ``CDB_QueryTables``)
2013-10-01 23:45:21 +08:00
* GDAL 1.9.2+ (bin utils)
* zip commandline tool
2011-06-30 19:13:13 +08:00
* redis
2012-10-04 18:43:12 +08:00
* node 0.8+
2011-06-30 19:13:13 +08:00
* npm
Install dependencies
---------------------
```bash
npm install
```
2012-03-14 02:32:01 +08:00
usage
-----
Create and edit config/environments/<environment>.js from .js.example files.
You may find the ./configure script useful to make an edited copy for you,
see ```./configure --help``` for a list of supported switches.
2012-03-14 02:32:01 +08:00
Make sure redis is running and knows about active cartodb user.
Make sure your PostgreSQL server is running, is accessible on
the host and port specified in the <environment> file, has
a 'publicuser' role and trusts user authentication from localhost
connections.
2012-03-14 02:32:01 +08:00
``` bash
2012-03-16 17:31:03 +08:00
node [cluster.js|app.js] <environment>
2012-03-14 02:32:01 +08:00
```
2012-03-16 17:31:03 +08:00
Supported <environment> values are developement, test, production
2012-07-24 17:08:13 +08:00
See doc/API.md for API documentation.
For examples of use, see under test/.
2012-03-14 02:32:01 +08:00
2011-10-08 00:19:02 +08:00
tests
------
Run ```make check``` or see test/README.md
2012-03-16 21:18:43 +08:00