Giter VIP home page Giter VIP logo

landsat-api's Introduction

Landsat8 Metadata API

This small nodejs application creates an API for landsat metadata.

Dependencies: Elastic Search

Donwload and install the lastest version of elastic search zip from ES website

Installation

Install NodeJS, npm and forever (This is ONLY needed if you want to run the API engine)

$: sudo apt-get install nodejs ruby ruby1.9.1-dev npm -y
$: sudo ln -s /usr/bin/nodejs /usr/bin/node
$: npm install

To run the api:

$: node api.js

To test the API run:

$: curl localhost:8000/landsat?search=LC81660362014196LGN00

To run the API in the background run:

$: forever start api.js

To list forever jobs:

$: forever list
info:    Forever processes running
data:        uid  command         script forever pid   logfile                        uptime
data:    [0] v0MM /usr/bin/nodejs api.js 19708   19710 /home/ubuntu/.forever/v0MM.log 0:0:5:46.387

To Kill the forever job:

$: forever stop 0

Config

The following environmental variables are available for customizing the API. If you add the variables to an .env file, they are loaded automatically when the app starts.


QUERY_LIMIT=100
COUNT_LIMIT=1000
PORT=8080
ES_HOST=localhost:9200
NODE_ENV=production
NEW_RELIC_APP_NAME=some_app
NEW_RELIC_LICENSE_KEY=some_license
RESPONSE_HEADER_SERVER=api.developmentseed.org

Updating the metadata

Read more here

Credit

This is a fork of the excellent OpenFDA API: https://github.com/FDA/openfda/tree/master/api

To Do

  • Add a documentation for the API

landsat-api's People

Contributors

drewbo avatar jflasher avatar scisco avatar

Watchers

 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.