Home Manual Reference Source Test Repository

OpenGate.js API

OpenGate.js is an EC6 JavaScript library that helps you integrate OpenGate easily in your JavaScript projects. Although it's an EC6 project it compiles into compliant EC5 JavaScript thanks to Babel and gulp, therefore you can use OpenGate.js in your browser application and in your Node.js server.

Features

Documentation

To generate the API documentation you can execute gulp build and open the generated HTML on: documentation/index.html

Generate version

Can generate version of the project with the jenkins job http://constructor.amplia.es:8080/jenkins/job/og-ux_generate_release_from_github/

  1. Click on "Build with Parameters"
  2. Select "incrementVersion"
  3. Introduce Project "opengate-js"
  4. Click on button Ejecución

Once the version is generated, update dependencies:

  1. Update into package.json

    $ yarn upgrade opengate-js@[version]
    
  2. Update the version into the project

    import {} from 'opengate-js/dist/opengate-api-bower-[version]'
    

Tests

Before running the tests you must configure the following values:

You can run the tests by running the following command:

$ gulp cucumber [--tags @[tags]]