Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/feathersjs-ecosystem/client
[MOVED] Client side Feathers build
https://github.com/feathersjs-ecosystem/client
feathers-client feathersjs
Last synced: about 2 months ago
JSON representation
[MOVED] Client side Feathers build
- Host: GitHub
- URL: https://github.com/feathersjs-ecosystem/client
- Owner: feathersjs-ecosystem
- License: mit
- Archived: true
- Created: 2014-10-21T23:36:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T18:44:37.000Z (over 6 years ago)
- Last Synced: 2024-04-22T01:55:31.792Z (9 months ago)
- Topics: feathers-client, feathersjs
- Language: JavaScript
- Homepage: https://github.com/feathersjs/feathers
- Size: 2.05 MB
- Stars: 111
- Watchers: 18
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- Contributing: .github/contributing.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - feathers-client ★121 - Feathers client that works with React Native, NodeJS and any client framework. (Components / Backend)
README
# @feathersjs/client
> __Important:__ The code for this module has been moved into the main Feathers repository at [feathersjs/feathers](https://github.com/feathersjs/feathers) ([package direct link](https://github.com/feathersjs/feathers/tree/master/packages/client)). Please open issues and pull requests there. No changes in your existing Feathers applications are necessary.
[![Build Status](https://travis-ci.org/feathersjs/client.png?branch=master)](https://travis-ci.org/feathersjs/client)
> A client for Feathers services supporting many different transport libraries.
## About
While Feathers and its modules can be used on the client with an NPM compatible module loader like [Browserify](http://browserify.org/), [Webpack](https://webpack.github.io/) or [StealJS](http://stealjs.com), `@feathersjs/client` consolidates a standard set of client plugins into a single distributable that can be used standalone in the browser or with other module loaders (like [RequireJS](http://requirejs.org/)) that don't support NPM. The following modules are included:
- [@feathersjs/feathers](https://github.com/feathersjs/feathers) as `feathers` (or the default module export)
- [@feathersjs/errors](https://github.com/feathersjs/errors) as `feathers.errors`
- [@feathersjs/rest-client](https://github.com/feathersjs/rest-client) as `feathers.rest`
- [@feathersjs/socketio-client](https://github.com/feathersjs/socketio-client) as `feathers.socketio`
- [@feathers/primus-client](https://github.com/feathersjs/primus-client) as `feathers.primus`
- [@feathersjs/authentication-client](https://github.com/feathersjs/authentication-client) as `feathers.authentication`In the browser a client that connects to the local server via websockets can be initialized like this:
```html
var socket = io();
var client = feathers()
.configure(feathers.socketio(socket));
var todoService = client.service('todos');
todoService.on('created', function(todo) {
console.log('Someone created a todo', todo);
});
todoService.create({
description: 'Todo from client'
});```
For the full documentation see [the Feathers documentation](http://docs.feathersjs.com/clients/feathers.html).
## License
Copyright (c) 2018 [Feathers contributors](https://github.com/feathersjs/client/graphs/contributors)
Licensed under the [MIT license](LICENSE).