An open API service indexing awesome lists of open source software.

https://github.com/tobitsoftware/chayns-js

The chayns® JavaScript API allows you to expand your Site with many useful features.
https://github.com/tobitsoftware/chayns-js

chayns javascript javascript-library tobit

Last synced: 3 months ago
JSON representation

The chayns® JavaScript API allows you to expand your Site with many useful features.

Awesome Lists containing this project

README

          

[![license](https://img.shields.io/github/license/TobitSoftware/chayns-js.svg)]() [![GitHub pull requests](https://img.shields.io/github/issues-pr/TobitSoftware/chayns-js.svg)]() [![](https://img.shields.io/github/issues-pr-closed-raw/TobitSoftware/chayns-js.svg)]()

# chayns® JavaScript API

In this section you will find general information about the chayns® JavaScript API. For more detailed information take a look at the [Wiki](https://github.com/TobitSoftware/chayns-js/wiki).

## Getting started

### Usage

If you want to use the chayns® JavaScript API in your own tapp, we suggest using the code below.

```HTML

```

Once the chayns API is implemented, you only need to run the chayns.ready-Promise.

Watch [this](https://github.com/TobitSoftware/chayns-js/wiki/Getting-Started) getting started tutorial for more information on chayns.ready.

### Debugging

To work on the chayns JavaScript API, you need to install the dependencies:

``
npm i
``

Once the dependencies have been installed successfully, you can add your ssl certificate files in webpack/ssl.
If you don't have one, you need to remove the props `https`, `cert` and `key` from your dev config.
To use chayns with a non-https tapp, you have to add the url parameter `nrd=1`.

Then, you can start the webpack-dev-server:

``
npm start
``

The dev page will be available at port 8080.