Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 1015 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 1015 Bytes

An API for [VABusinesses.org] (https://vabusinesses.org/)

Built on [Hapi.js] (http://hapijs.com/) using [Elasticsearch] (http://www.elasticsearch.org).

To reproduce the data set:

  1. Download and install [Elasticsearch] (http://www.elasticsearch.org)
  2. Start your Elasticsearch server
  3. Clone [Crump] (https://github.com/openva/crump)
  4. Download the [current data file] (https://s3.amazonaws.com/virginia-business/current.zip) and [the current address file] (https://s3.amazonaws.com/virginia-business/addresses.db) and put it in the crump folder.
  5. In a console cd into the folder where you cloned Crump and run ./Crump -tem.
  6. Run [the indexing script] (https://github.com/openva/vabusinesses.org/blob/master/index.sh), changing the directory to the location where you ran Crump.

To install the API:

  1. Install Node
  2. Clone this repo
  3. cd to the directory where you installed the repo and run npm install.
  4. Alter the config.json file for your setup
  5. Run node api.js