Socket
Socket
Sign inDemoInstall

@openplains/grass-js-client

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @openplains/grass-js-client

[![build](https://github.com/tomorrownow/grass-js-client/actions/workflows/node.js.yml/badge.svg)](https://github.com/tomorrownow/grass-js-client/actions/workflows/node.js.yml)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

(In Development) grass-js-client

build

A JavaScript REST API client for django-actinia or Actinia REST APIs.

Getting Started

grass-js-client works with django-actinia and Actinia 4.2.1.

Documentation

https://tomorrownow.github.io/grass-js-client/

Install (Coming Soon)

npm install grass-js-client

Configuration

Set your api settings in src/settings.js

{
    "API_HOST": "http://localhost:8005/savana",
    "API_SOURCE": ["actinia", "openplains"],
    "ACTINIA_VERSION": "4.2.1",
    "LANGUAGE": "en",
    "APP_NAME": "OpenPlains",
    "APP_ICON": "",
    "PLUGINS": [
        {
            "name": "actinia_statistic_plugin",
            "version": "0.2.0"
        },
        {
            "name": "actinia_satellite_plugin",
            "version": "0.1.0"
        },
        {
            "name": "actinia_metadata_plugin",
            "version": "1.0.2"
        },
        {
            "name": "actinia_module_plugin",
            "version": "2.3.1"
        },
        {
            "name": "actinia_stac_plugin",
            "version": "0.1.0"
        },
        {
            "name": "actinia_tiling_plugin",
            "version": "1.0.0"
        },
        {
            "name": "actinia_api",
            "version": "3.3.0"
        }
    ]
}

Make requests to the API...

import Grass from "Grass";

// Get a list of avaliable locations
let response = await Grass.routes.Locations.getLocations()

// Get info about a location
let info = await Grass.routes.Locations.getLocation('nc_spm_08')

More documentation to come...

Contribute

Set up your node environment and install dependencies

nvm use
npm install
Testing

Run Jest test using the following commnad.

npm run test
Build

Run Jest test using the following commnad.

npm run build
Docs

Run JSDocs to build docs into the /docs directory

npm run docs

FAQs

Last updated on 13 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc