npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

donejs-feathers

v2.1.5

Published

A generator to quickly add FeathersJS to your DoneJS project. Includes Auth!

Downloads

42

Readme

donejs-feathers - Full-stack realtime

Build Status npm version

Full-stack realtime with DoneJS & Feathers

A generator to quickly add FeathersJS to your DoneJS project.

Using the generator

To add this generator to your DoneJS application run

donejs add feathers

DoneJS and FeathersJS make for a killer full-stack solution for creating apps. This generator creates all of the model files and utilities needed to get both working together quickly. The current 2.x version only sets up the model layer of the app. UI generation will move to separate generators sometime in the future.

This generator could potentially overwrite files in an existing application. It is meant to 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. To understand more about how these modules work together, check out the can-connect-feathers documentation.

  • 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/fixtures.js - includes mocks that simulate auth if you don't have a Feathers server running.
  • 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

Developing

To make changes to this generator clone the repository and install the dependencies

git clone [email protected]:feathersjs/donejs-feathers.git
cd donejs-feathers
npm install

Then you can run the tests with

npm test