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

Code4HR/business-openva-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •