Basic API to return NAICS codes and descriptive information (to-do)
Example request
http://naics-api.herokuapp.com/v0/q?year=2012&code=519120
To get NAICS codes above a given code
http://naics-api.herokuapp.com/v0/q?year=2012&code=519120&above=1
To get NAICS codes below a given code
http://naics-api.herokuapp.com/v0/q?year=2012&code=51&below=1
To get all NAICS codes for a given years codes (only 2007 and 2012 are available right now)
http://naics-api.herokuapp.com/v0/q?year=2012
Warning! The URL (server and/or structure) is likely to change in the very near future. Do not use for production (yet).
-
Download and install Node.js.
-
Clone this repository to a folder on your computer. The rest of this document will refer to this folder as
$PROJECT_ROOT
. -
Install project dependencies.
cd $PROJECT_ROOT npm install
-
Update the project dependencies.
cd $PROJECT_ROOT npm install
-
Start the REST API server.
cd $PROJECT_ROOT node server.js