This repository has been archived by the owner. It is now read-only.
[MOVED] Client side Feathers build
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adding .github to .npmignore Oct 22, 2016
browser Update all dependencies and build to Babel 8 (#294) Sep 18, 2018
dist Updating dist Sep 21, 2018
src Minor code change to enable re-release Sep 21, 2018
test Upgrade to Feathers v3 and new builds Oct 30, 2017
.babelrc Update all dependencies and build to Babel 8 (#294) Sep 18, 2018
.gitignore Update to new name and plugin infrastructure Oct 30, 2017
.istanbul.yml Update to new name and plugin infrastructure Oct 30, 2017
.npmignore Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
.travis.yml Update @feathersjs/feathers to the latest version 🚀 (#265) Jun 16, 2018
CHANGELOG.md Updating changelog Sep 21, 2018
Gruntfile.js Reset test name Oct 30, 2017
LICENSE Initial implementation of Feathers clients for jQuery, Superagent and… Jun 1, 2015
authentication.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
bower.json Update version Sep 21, 2018
core.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
index.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
mocha.opts Update dependencies for release (#214) Nov 1, 2017
package-lock.json 3.7.1 Sep 21, 2018
package.json 3.7.1 Sep 21, 2018
primus.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
readme.md Add note about move to monorepo Sep 21, 2018
rest.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
socketio.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
version.js Make sure Bower and NPM version are in sync (#107) Nov 2, 2016
webpack.config.js Update all dependencies and build to Babel 8 (#294) Sep 18, 2018

readme.md

@feathersjs/client

Important: The code for this module has been moved into the main Feathers repository at feathersjs/feathers (package direct link). Please open issues and pull requests there. No changes in your existing Feathers applications are necessary.

Build Status

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, Webpack or StealJS, @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) that don't support NPM. The following modules are included:

In the browser a client that connects to the local server via websockets can be initialized like this:

<script type="text/javascript" src="//unpkg.com/socket.io-client@1.7.3/dist/socket.io.js"></script>
<script type="text/javascript" src="//unpkg.com/@feathersjs/client@^3.0.0/dist/feathers.js"></script>
<script type="text/javascript">
  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'
  });
</script>

For the full documentation see the Feathers documentation.

License

Copyright (c) 2018 Feathers contributors

Licensed under the MIT license.