Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @sat-utils/api-lib with all npm packages installed. Try it out:

var apiLib = require("@sat-utils/api-lib")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@sat-utils/api-lib v0.3.0

A library for creating a search API of public Satellites metadata using Elasticsearch

@sat-utils/api-lib

Unit Tests

$ yarn
$ yarn test

Integration Tests

Navigate to the integration directory

$ cd ./tests/integration

Use the environment variable DOCKER_NAME to set your Docker host name. Normally localhost.

$ export DOCKER_NAME=localhost

The AWS-SDK library also requires fake key fields to create a connection so set.

$ export AWS_ACCESS_KEY_ID=none
$ export AWS_SECRET_ACCESS_KEY=none

To run the tests

$ ./runIntegration.sh

Environment variables

AWS_REGION AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY ES_HOST ES_BATCH_SIZE STAC_ID STAC_TITLE STAC_DESCRIPTION STAC_VERSION STAC_DOCS_URL SATAPI_URL

About

sat-api was created by Development Seed and is part of a collection of tools called sat-utils.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free