Giter VIP home page Giter VIP logo

nplakhtii / here-data-sdk-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heremaps/here-data-sdk-typescript

0.0 0.0 0.0 5.9 MB

The HERE Data SDK for TypeScript is a modern, lightweight and modular SDK for the HERE platform

Home Page: https://www.here.com/products/platform

License: Apache License 2.0

TypeScript 97.34% JavaScript 1.24% Shell 1.21% HTML 0.01% Mustache 0.20%

here-data-sdk-typescript's Introduction

HERE Data SDK for TypeScript

HERE Data SDK for TypeScript is a TypeScript client for the HERE platform.

Health check

Build and test

Master Node version Status
Build/Test/Bundling/Typedoc Node 16.13.2 (LTS) Build Status

Test coverage

Platform Status
Linux Linux code coverage

Backward compatibility

We try to develop and maintain our API in a way that preserves its compatibility with the existing applications. Changes in Data SDK for TypeScript are greatly influenced by the Data API development. Data API introduces breaking changes 6 months in advance. Therefore, you may need to migrate to a new version of Data SDK for TypeScript every half a year.

For more information on Data API, see its Developer Guide and API Reference.

When new API is introduced in Data SDK for TypeScript, the old one is not deleted straight away. The standard API deprecation time is 6 months. It gives you time to switch to new code. However, we do not provide ABI backward compatibility.

All of the deprecated methods, functions, and parameters are documented in the Data SDK for TypeScript API Reference and changelog.

For more information on Data SDK for TypeScrypt, see our Developer Guide.

About this repository

The Data SDK repository is a monorepo that contains the core components of the platform SDK organized in the NPM workspace.

All components can be used stand-alone and are in the @here subdirectory.

Installation

You can install the Data SDK modules using npm or add compiled bundles to an HTML page.

To install the Data SDK modules using npm, run the following commands:

npm install @here/olp-sdk-authentication
npm install @here/olp-sdk-core
npm install @here/olp-sdk-dataservice-read
npm install @here/olp-sdk-dataservice-write
npm install @here/olp-sdk-dataservice-api

To use the Data SDK with pure JavaScript, inject the compiled bundles from the CDN repository in your HTML application.

<script src="https://unpkg.com/@here/olp-sdk-fetch/bundle.umd.min.js"></script> 
<script src="https://unpkg.com/@here/olp-sdk-core/bundle.umd.min.js"></script> 
<script src="https://unpkg.com/@here/olp-sdk-authentication/bundle.umd.min.js"></script> 
<script src="https://unpkg.com/@here/olp-sdk-dataservice-api/bundle.umd.min.js"></script> 
<script src="https://unpkg.com/@here/olp-sdk-dataservice-read/bundle.umd.min.js"></script> 
<script src="https://unpkg.com/@here/olp-sdk-dataservice-write/bundle.umd.min.js"></script> 

To learn how to use the Data SDK, see the Getting Started Guide, Developer Guide, and API Reference.

Development

Dependencies

Data SDK for TypeScript has the following dependencies:

  • npm 6.0.0+ (for installation instructions, see npm)
  • Node.js 10+ (for installation instructions, see Node.js)
  • Lerna.js 3+ (for installation instructions, see Lerna.js)
  • TypeDoc 0.15+ (for installation instructions, see TypeDoc)

Note: As an alternative to npm, you can also use Yarn 1+ (for installation instructions, see Yarn).

Download dependencies

To bootstrap the packages in the current Lerna repository, install all interdependent packages, and link any cross-dependencies, run the following command:

yarn install && yarn bootstrap

Build the SDK

To build the TypeScript source code into the JavaScript code, run the following command:

npm run build

Test the SDK

You can test the build results using unit and integration tests.

To test the build results using unit tests, run the following command:

npm run test

To test the build results using integration tests, run the following command:

npm run integration-test

Test coverage

To run unit tests and generate test coverage reports, run the following command:

npm run coverage

Generate documentation with TypeDoc

To generate documentation for all modules and classes, run the following command:

npm run typedoc

The dist/doc folder is generated with the documentation from the annotated source code.

Use the bundle functionality

If you want to have a compiled project, you can use bundle commands. After running each of the following commands, you get the .js bundled files from the root folder for each package:

@here/olp-sdk-authentication/bundle.umd.min.js
@here/olp-sdk-core/bundle.umd.min.js
@here/olp-sdk-dataservice-read/bundle.umd.min.js
@here/olp-sdk-dataservice-write/bundle.umd.min.js
@here/olp-sdk-dataservice-api/bundle.umd.min.js
@here/olp-sdk-fetch/bundle.umd.min.js

To get the bundled .js files with the sourcemaps files for all modules, run the following command:

npm run bundle:dev

To get a minified version for production, run the following command:

npm run bundle:prod

To get the bundled and minified .js files, run the following command:

npm run bundle

LICENSE

Copyright (C) 2019โ€“2022 HERE Europe B.V.

For license details, see the LICENSE file in the root of this project.

here-data-sdk-typescript's People

Contributors

oleksiizubko avatar iriza7 avatar halynadumych avatar ystefinko avatar nplakhtii avatar andescu avatar haraldf avatar dependabot[bot] avatar leonid-ziskel avatar keaukraine avatar piyushraja avatar tsteenbe avatar vishalsdeshmukh 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.