Giter VIP home page Giter VIP logo

loopback-connector-kv-extreme-scale's Introduction

loopback-connector-kv-extreme-scale

The official WebSphere eXtreme Scale KeyValue connector for LoopBack.

Usage

While it is possible to use this connector as a standalone module, we recommended using it in your application via the LoopBack command-line tools.

Installation and configuration

The command line tool will prompt you to install the connector (if not already installed):

cd your-loopback-app
lb datasource
? Enter the data-source name: xs
? Select the connector for xs: IBM WebSphere eXtreme Scale key-value connector (supported by StrongLoop)
Connector-specific configuration:
? Connection String url to override other settings (eg: https://user:pass@host:port/wxsdata/v1/grids/$GRID_NAME): https://username:password@localhost:9444/wxsdata/v1/grids/your-grid-name
? Use SSL for connections to the grid: Yes
? Install loopback-connector-kv-extreme-scale@^1.0.0 (Y/n) Yes
[email protected] $HOME/your-project-name
└── [email protected]

Running tests

The test suite requires a running WebSphere eXtreme Scale server. We recommend Docker for the easiest set up experience.

Setting up development environment

Important note for Mac users

The XSLD image does not work in the virtual environment provided by Docker for Mac. You need to create a new docker-machine using the virtualbox driver, see docker-machine docs for instructions.

The instructions

  1. Follow the instructions at https://hub.docker.com/r/ibmcom/xsld/ to setup a Docker version of WebSphere eXtreme Scale server.

  2. Create your test grid:

  • Open the administration web interface (https://your-ip:9443/), replace your-ip with the hostname or IP address of your (docker) machine.

    Use docker-machine ls to find the IP address used by your docker machine.

  • Login using credentials created in step one, usually xsadmin and xsadmin4Me!

  • Select "Data Grids"

  • Click on the plus-in-circle button in the top-right corner

  • Use simple Template, fill in Name testgrid

  1. Verify your configuration
  • Open the REST API explorer at https://your-ip:9444/ibm/api/explorer
  • Expand grids section
  • Expand POST endpoint
  • Fill in gridname testgrid, mapname testmap.LUT.O, key test, body { "name": "test" }
  • Click "Try it out!"
  • You should receive Response Code 200
  1. Setup environment variable EXTREME_SCALE_URL pointing to the grid created. Replace xsadmin, xsadmin4Me! and your-ip with admin username, admin password and your hostname/IP address.

    On Linux and Mac:

    $ export EXTREME_SCALE_URL=https://xsadmin:xsadmin4Me!@your-ip:9444/wxsdata/v1/grids/testgrid/testmap
    

    On Windows:

    % SET EXTREME_SCALE_URL=https://xsadmin:xsadmin4Me!@your-ip:9444/wxsdata/v1/grids/testgrid/testmap
    
  2. Congratulations, you can run npm test now!

loopback-connector-kv-extreme-scale's People

Contributors

0candy avatar bajtos avatar candytangnb avatar dhmlau avatar kallenboone avatar nabdelgadir avatar siddhipai avatar simonhoibm avatar ssh24 avatar superkhau avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loopback-connector-kv-extreme-scale's Issues

Take host/username/password in datasources.json

  • Update available connectors in workspace
  • Update example to use new options in configs
  • Update example to use new menu options in README
  • Run tests to make sure they all pass
  • Do all the above for lb2x + lb3x examples
  • Publish changes

Fix CI

See comments in loopbackio/loopback-datasource-juggler#1705 (comment)

Acceptance Criteria

  • Fix database connection issue for kv-extreme-scale connector tests
    • If there are failing tests, assess effort and
    • Fix them as part of this task if trivial
    • Create follow-up issue(s) if the failures are complicated

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.