# liferay-client-nodejs

> NodeJS client for Liferay SDK Services and Custom Services based on Lifray SDK

Latest version **0.0.1** (published 2015-11-15) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install liferay-client-nodejs
pnpm add liferay-client-nodejs
yarn add liferay-client-nodejs
bun add liferay-client-nodejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-11-15 |
| First published | 2015-11-15 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Donald Lamar Davis II |
| Maintainers | ddavis2xtivia |
| Keywords | liferay, nodejs, framework, web, js |

## Links

- npm: https://www.npmjs.com/package/liferay-client-nodejs
- Homepage: http://www.xtivia.com
- Issues: https://github.com/xtivia/liferay-client-nodejs/issues
- npm.io page: https://npm.io/package/liferay-client-nodejs

## Dependencies (9)

- [q](https://npm.io/package/q.md) ^1.4.1
- [del](https://npm.io/package/del.md) ^2.0.2
- [gulp](https://npm.io/package/gulp.md) ^3.9.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [gulp-wrap](https://npm.io/package/gulp-wrap.md) ^0.11.0
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-jasmine](https://npm.io/package/gulp-jasmine.md) ^2.1.0
- [http-request](https://npm.io/package/http-request.md) ^0.7.0
- [string.prototype.endswith](https://npm.io/package/string.prototype.endswith.md) ^0.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.1 (latest) — 2015-11-15

## README

# liferay-client-nodejs
![Liferay client for nodejs logo](logo.png)

This is an implementation by [XTIVIA](http://www.xtivia.com) of the [Liferay Mobile SDK](https://github.com/liferay/liferay-mobile-sdk) for any nodejs based application.

##Usage
To use this package as part of a front-end application simply add a bower dependency for liferay-mobile-sdk-angularjs.

```
    npm install --save liferay-client-nodejs
```

### Signin to remote host
Currently this package supports basic authentication. The following is an example of how to do this in an mocha test.

```          
    'use strict';
    var chai = require('chai');
    /*global describe: true, it: true, before: false, after: false*/
    
    var userEmail = process.env.MOCHA_TEST_USER;
    var password = process.env.MOCHA_TEST_CREDENTIALS;
    
    describe('Test build of services using Xtivia\'s Liferay Demo server',function() {
        describe('Test signin functionality',function() {
            it('should pass if server is available and user information is correct',function() {
                this.timeout(15000); // Just in case slow access to server
                return require('../../index.js')({server:'http://liferaydemo.xtivia.com',contexts:{'mobile-demo-integration-portlet':'MobileDemo'}}).then(function(connection){
                    chai.assert.isNotNull(connection);
                    return connection.signin({
                        authenticationType: connection.AuthenticationType.BASIC,
                        username: userEmail,
                        credentials: password
                    }).then(function(ctx) {
                        chai.assert.isNotNull(ctx);
                        console.log(ctx);
                    },function(err) {
                        throw err;
                    });
                },function(err) {
                    throw err;
                });
            });
        });
    });
```

---
_Source: https://npm.io/package/liferay-client-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
