GithubHelp home page GithubHelp logo

arcgis-rethinkdb's Introduction

RethinkDB + ArcGIS

A simple demo showing RethinkDB + ArcGIS's JavaScript API.

Screenshot

Setup

Installing Node.js

If you're on a Mac, you can use homebrew to install Node.js.

$ brew install node

Install all depdendencies

$ npm install

Installing RethinkDB

After installing node.js, you need to install RethinkDB:

If you're on a Mac, install it using homebrew:

$ brew install rethinkdb

Homebrew will give you some options about whether you want to run it on startup or not.

After that, test whether RethinkDB is running by running the rethinkdb command and going to localhost:8080.

$ rethinkdb

When going to localhost:8080, you should see the web UI.

Importing Data

After installing, RethinkDB you now need to import the database with the census, restaurant, and processed data.

First, pull down the archive file with the database (this is stored in my servers).

$ curl -O http://thejsj.com/2015/arcgis/data-backup-latest.tar.gz

Then, extract it.

$ tar --extract --file=data-backup-latest.tar.gz

After extracting the tar, you can now run the database with the data specified

$ rethinkdb -d ./data-backup --port-offset 1

Once you're run this command, you can go to localhost:8081 (Notice that it's a different port!), and go to the tables table on the top. You should have the following tables.

Tables

Running the app

In order to run the app, you need to do two things: 1. Run RethinkDB and 2. Run the development server.

  1. Run RethinkDB with an 1 port offset and the data you downloaded.
$ rethinkdb -d ./data-backup --port-offset 1
  1. Run development server
$ npm run dev

arcgis-rethinkdb's People

Contributors

thejsj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.