Or you can just [download the CartoDB zip file](https://github.com/Vizzuality/cartodb/zipball/master).
@ -56,17 +57,20 @@ We implemented CartoDB in the [Ruby](ruby-lang.org) programming language, so you
## Install Node.js ##
Components of CartoDB, like Windshaft, depend on [Node.js](nodejs.org). Basically it's a highly-scalable web server that leverages Google's V8 JavaScript engine.
Components of CartoDB, like Windshaft, depend on [Node.js](nodejs.org) (version greater than or equal to 0.4.1 but less than version 0.5.0). Basically it's a highly-scalable web server that leverages Google's V8 JavaScript engine.
You can install Node.js and NPM (the Node.js package manager) by [following these instructions](https://github.com/joyent/node/wiki/Installation) on Node's GitHub wiki site.
Alternatively, you can install Node.js using `brew install node`, but NPM has to be installed using the wiki instructions above.
Required: {"node":">= 0.4.1 <0.5.0"}
You may run into NPM version issues. If so, run
You may run into a few annoying NPM version issuess. If so, don't worry! Just run:
curl http://npmjs.org/install.sh | sh
```bash
$ curl http://npmjs.org/install.sh | sh
```
And you will be good to GO.
## Install PostgreSQL and PostGIS ##
@ -80,7 +84,6 @@ First you'll need to install a few dependencies.
- [PROJ4](http://trac.osgeo.org/proj) is required for reprojection support.
- plpython is required for Python support (e.g., `sudo apt-get install postgresql-plpython-9.1`)
Next install PostgreSQL 9.1.x and PostGIS 2.0.x.
Finally, CartoDB depends on a geospatial database template named `template_postgis`. In the example script below, make sure that the path to each SQL file is correct. As of PostGIS r8242 for example, spatial_ref_sys.sql is now located in the `root` installation directory, instead of in the `./postgis` directory:
@ -110,15 +113,19 @@ To install Redis 2.2+, You can [download it here](http://redis.io/download) or y
To install the Python modules that CartoDB depends on, you can use `easy_install`, which is easy!
```bash
easy_install pip
pip install -r python_requirements.txt
$ easy_install pip
$ pip install -r python_requirements.txt
```
If this fails, try doing `export ARCHFLAGS='-arch i386 -arch x86_64'` beforehand.
[Varish](https://www.varnish-cache.org) is a web application accelerator. Components like Windshaft use it to speed up serving tiles via the Maps API. Installing it is speedy too!