the-duke

1.13.0 • Public • Published

TheDuke

Build Status JavaScript Style Guide

Job code utility library for ArcGIS Hub

Composer + Jazz + Washington, D.C. = The Duke

Prerequisites

You will need the following things installed on your computer.

Installation

  • get the repo on your computer:
    • git clone git@github.com:ArcGIS/TheDuke.git or
    • git clone https://github.com/ArcGIS/TheDuke.git
  • install dependencies: npm install

Running / Development

  • nvm use
  • npm run watch
  • edit files in /src or /test directories
  • verify that node-watch runs the linter, tests, and build scripts
  • 🔨

Harvesting

  • Group layers are not turned into datasets of any kind. Hence they are filtered out during compose step.

Compose Structure

Refer to

{
  errors:[
    {
      ...
    }
  ]
  item:
  metadata:
  groups:
  server: <only if item has a feature|map|image server>
  layers: <only if item has a feature|map server>
  default: <top level keys like createdAt, name, title, tags, source etc.>
}

Error Structure

{
  message:
  stack:
  name: <examples: FetchError | TypeError | SomeCustomError etc. >
  timestamp:
  field: <The field that caused this error like item | metadata | groups etc. >
  url: <may be null if not HTTPError>
  statusCode: <may be null if not HTTPError>
  httpMethod: <may be null if not HTTPError else 'get', 'post' etc.>
}

Readme

Keywords

none

Package Sidebar

Install

npm i the-duke

Weekly Downloads

56

Version

1.13.0

License

Apache-2.0

Last publish

Collaborators

  • haoliang
  • dmfenton
  • pranavkulkarni
  • akharris