GithubHelp home page GithubHelp logo

miguelramosfdz / geocouch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbase/geocouch

0.0 1.0 0.0 2.3 MB

GeoCouch, a spatial index for CouchDB

License: Apache License 2.0

CMake 0.82% Makefile 0.35% Erlang 87.53% JavaScript 11.28% Shell 0.01%

geocouch's Introduction

Welcome to the world of GeoCouch

GeoCouch is a spatial extension for Couchbase and Apache CouchDB.

For Couchbase

Checkout the code

Check the code out with repo:

mkdir newvtree
cd newvtree
repo init -u git://github.com/couchbase/manifest.git -m toy/toy-newvtree.xml
repo sync

Build instructions

Make sure you have built CouchDB from source including make dev. So go to your CouchDB directory and run:

./bootstrap
./configure
make dev

After that you can compile GeoCouch from within the GeoCouch directory:

COUCH_SRC=<path-to-couchdb-source>/src/couchdb make couchbase

Running tests

After you've followed the build instructions you can run the tests with

COUCH_SRC=<path-to-couchdb-source>/src/couchdb make couchbase-check

For Apache CouchDB

This version of GeoCouch needs at least Apache CouchDB 1.3.x.

Checkout the code

First checkout the source code for Apache CouchDB into a directory that will be referred to as <path-to-couchdb-source>.

Then checkout the GeoCouch source:

git clone -b newvtree https://github.com/couchbase/geocouch.git

There's a new directory called geocouch created. From now on this directory will be referred to as <path-to-geocouch-source>.

Build instructions

Make sure you have built Apache CouchDB from source including make dev. So go to your <path-to-couchdb-source> and run:

./bootstrap
./configure
make dev

After that you can compile GeoCouch from within the GeoCouch directory:

COUCH_SRC=<path-to-couchdb-source>/src/couchdb make couchdb

Now copy the configuration file into your Apache CouchDB directory:

cp etc/couchdb/default.d/geocouch.ini <path-to-couchdb-source>/etc/couchdb/default.d/

Running tests

After you've followed the build instructions you can run the tests with

COUCH_SRC=<path-to-couchdb-source>/src/couchdb make couchdb-check

In order to run the JavaScript based tests, you need to start Apache CouchDB first:

cd <path-to-couchdb-source>
ERL_LIBS="<path-to-geocouch-source>" ./utils/run

The tests can either be run from the command line or the browser.

From command line

From the command line the easiest way is to use the supplied runner script. From within the <path-to-geocouch-source>:

cd gc-couchdb
./utils/runjstests.sh <path-to-couchdb-source>/test/javascript/run ./share/www/script/test

From browser

To run it from the browser first copy the JavaScript tests into the same directory as the other Apache CouchDB tests:

cp <path-to-geocouch-source>/gc-couchdb/share/www/script/test/* <path-to-couchdb-source>/share/www/script/test/

Then add the tests to <path-to-couchdb-source>/share/www/script/couch_tests.js

loadTest("spatial.js");
loadTest("list_spatial.js");
loadTest("etags_spatial.js");
loadTest("multiple_spatial_rows.js");
loadTest("spatial_compaction.js");
loadTest("spatial_design_docs.js");
loadTest("spatial_bugfixes.js");
loadTest("spatial_offsets.js");
loadTest("spatial_range.js");

License

GeoCouch is licensed under the Apache License 2.0.

geocouch's People

Contributors

ceejatec avatar daleharvey avatar dustin avatar fdmanana avatar jhs avatar steveyen avatar vmx avatar vzasade avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.