Basic DoneJS 1.0 Support
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- asessionproperty is added to theAppViewModelthat reads from theSessionmodel'scurrentproperty.models/algebra.js- contains algebra forcan-connectthat enables support for the Feathers query syntax.models/behaviors.js- contains the minimumcan-connectbehaviors that are needed to work with Feathers and realtime data. The Feathers behaviors are added in the individual Model files, likeuser.jsandsession.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 theSessionmodel to thecan-connect-feathers/session/behavior. It also automatically populates theuserdata using theUsermodel.models/user.jsa basic User model. It uses thecan-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-feathersfeathersfeathers-hooksfeathers-socketiofeathers-authentication-clientsteal-socket.iosocket.io-client