Skip to content

Basic DoneJS 1.0 Support

Choose a tag to compare

@marshallswain marshallswain released this 03 May 16:12

donejs-feathers has been updated to work with DoneJS 1.0. Only the basic Feathers setup is supported. UI generation has been removed in this version and will possibly move to separate generators in the future. Because it could potentially overwrite some existing files, this generator should be used immediately after generating a new DoneJS application.

Here's a summary of the files that will be added or modified in a DoneJS project:

  • app.js - a session property is added to the AppViewModel that reads from the Session model's current property.
  • models/algebra.js - contains algebra for can-connect that enables support for the Feathers query syntax.
  • models/behaviors.js - contains the minimum can-connect behaviors that are needed to work with Feathers and realtime data. The Feathers behaviors are added in the individual Model files, like user.js and session.js.
  • models/feathers-client.js - sets up the Feathers client with Socket.io and points it to the location of the Feathers server. It also configures all of the npm-installed Feathers plugins.
  • models/session.js - handles authentication. It connects the Session model to the can-connect-feathers/session/ behavior. It also automatically populates the user data using the User model.
  • models/user.js a basic User model. It uses the can-connect-feathers/service/ behavior to connect to the Feathers server. The default user endpoint is /users, but can be modified here.

The following packages will be added to your project from npm:

  • can-connect-feathers
  • feathers
  • feathers-hooks
  • feathers-socketio
  • feathers-authentication-client
  • steal-socket.io
  • socket.io-client