MarsBased / iNaturalistAPI

Node.js API for iNaturalist.org

Home Page:https://api.inaturalist.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iNaturalistAPI

Build Status Coverage Status

Our API is documented using the Swagger/OpenAPI 2.0 specification. Check out the Swagger UI documentation viewer at https://api.inaturalist.org/docs.

https://api.inaturalist.org

Setup

npm install
# Fill in vals to connect to Rails, Postgres, and elasticsearch
cp config_example.js config.js
# Run the node app on port 4000
node app.js

Running Tests

Run all: npm test Filter by pattern: NODE_ENV=test ./node_modules/mocha/bin/_mocha --recursive --fgrep observations

You can also add .only to a describe or it call to only run that test when you run npm test, e.g. it.only( "should only run this test" ).

Updating Documentation

Edit lib/views/swagger_v*.yml.ejs

About

Node.js API for iNaturalist.org

https://api.inaturalist.org/


Languages

Language:JavaScript 74.0%Language:PLpgSQL 17.8%Language:EJS 8.1%Language:Dockerfile 0.0%Language:Ruby 0.0%