Go to file
2011-10-07 17:19:37 +01:00
app update readme 2011-10-07 17:19:02 +01:00
config added staging enviorment 2011-09-16 13:43:10 +02:00
logs updated gitignore and added required directories for node cluster to work out of the box 2011-09-05 17:01:23 +01:00
pids updated gitignore and added required directories for node cluster to work out of the box 2011-09-05 17:01:23 +01:00
test upgraded pg package. tests updated 2011-09-07 15:33:40 +01:00
.gitignore updated gitignore and added required directories for node cluster to work out of the box 2011-09-05 17:01:23 +01:00
app.js trim startup things 2011-08-23 14:58:06 +01:00
Capfile added initial capistrano files, and gem file 2011-06-30 13:06:23 +01:00
cluster.js added staging enviorment 2011-09-16 13:43:10 +02:00
Gemfile added initial capistrano files, and gem file 2011-06-30 13:06:23 +01:00
Gemfile.lock added initial capistrano files, and gem file 2011-06-30 13:06:23 +01:00
LICENSE update licence 2011-10-07 17:19:37 +01:00
package.json added simple kml support to SQL API, format=kml will output 2011-09-20 19:15:43 -07:00
README.md update readme 2011-10-07 17:19:02 +01:00
TODO.md add notes on locking cache 2011-09-20 22:11:33 -03:00

SQL API for cartodb.com

Provides a nodejs based API for running SQL queries against CartoDB.

  • Users are authenticated over OAuth. Also provides ability to make public "SELECT" only calls.
  • OAuth requests to this API should always be made over SSL.

usage

node cluster.js/app.js [developement,test,production]

for examples of use, see /tests

core requirements

  • pg_bouncer
  • postgres
  • redis
  • node v0.4.8+
  • npm

dependencies

npm install

tests

npm test-unit
npm test-acceptance

make sure you have setup your database connections in /config, and have the correct databases and keys setup in redis. You'll at least need to set redis with HSET rails:oauth_tokens:1 user_id 1 for the acceptance tests.