Questions tagged [feathersjs]

Feathers is a library that extends Express with the ability to easily create shared RESTful web services and real-time APIs using SocketIO and other websocket libraries.

Feathers is a library that extends Express with the ability to easily create shared RESTful web services and real-time APIs using SocketIO and other websocket libraries.

Useful links

Related tags

859 questions
3
votes
1 answer

TypeError: Cannot read property 'jest' of undefined at ServiceGenerator.writing

I am trying to use cli tool for generating authentication in a featherjs app that wasn't built with featherCLI. I have tried to added all the files it required but now it is giving me an error. feathers generate authentication ? What authentication…
Aditya Jamuar
  • 117
  • 1
  • 10
3
votes
1 answer

Connecting to Multiple MySQL DBs in Feathers.js using Sequelize

I've been unable to find a documented way of connecting to multiple MySQL databases in Feathers.js using Sequelize. Is there a way to do this? My use case is to be able to insert and get rows of data into multiple DBs from the same action but the…
Luc Hebert
  • 51
  • 3
3
votes
1 answer

when using feathers express, it gives page not found error #2355

I'm intergrating feathers js both on backend and frontend and I got page not found error when I tried this implementation. I would appreciate your help. thanks for the awesome…
3
votes
1 answer

FeathersJS way of preventing duplicates in a service

I'm using FeathersJS and MongoDB to develop an app. I want to prevent some services to create duplicates of some values (or pairs of values). For example, the FeathersJS "Authenticate" service created with the feathers-cli tool doesn't prevent the…
Jordi Blanch
  • 187
  • 1
  • 11
3
votes
0 answers

Ordering query with feathers-sequelize

I am trying to write a hook which adds ordering to a query on a table with associations. My query is on 'points' which has a join-table 'point_photos' and then is associated m:n to 'photos'. The standard feathersjs $sort can not be used for…
musicformellons
  • 12,283
  • 4
  • 51
  • 86
3
votes
0 answers

Authentication with AWS Cognito

I've been trying to implement AWS Cognito as an authentication strategy with @feathersjs/authentication but haven't had much luck with the libraries available. What would be a good starting point to develop this integration? Cognito generates the…
Danielle Neri
  • 191
  • 11
3
votes
1 answer

Feathers.js mongoose querying

I'm very new to feathers.js, how would you accomplish querying for an object? { ..., obj: { foo: 1, bar: 1 }, ... } The following seems to not work /some-doc?obj['foo']['$eq']=1 Also, how would you tackle a query like…
Yhom Torke
  • 161
  • 3
  • 12
3
votes
2 answers

How Can I set the default Sort order in FeathersJs

I have an issue with Feathersjs , integrating with sequalize. If I set the default pagination like below, and there is no sort specified it will generate an error because the SQL statement generated is invalid. Service Created with default of…
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
3
votes
1 answer

How to work with many to few mongodb relationship with feathersjs?

I have two models, with a many-to-few relationship, that I'm modelling as follows: // Portfolio const portfoliosSchema = new Schema({ name: { type: String, required: true }, description: { type: String }, user: { type: Schema.Types.ObjectId,…
cnorris
  • 548
  • 4
  • 12
3
votes
0 answers

How to add common attributes to sequelize models?

I am trying to use hooks in sequlize to add common attributes to models, I have defined a global hook as follows, module.exports = function (app) { const sequelizeClient = app.get('sequelizeClient'); sequelizeClient.addHook('beforeDefine',…
v1shva
  • 1,261
  • 3
  • 13
  • 28
3
votes
0 answers

How to handle file uploads in featherjs?

I am trying to to handle a multipart form file upload in feathersjs using multer, I have tried to copy the file contained in req.picture to the server using blobService and blobStorage and get a url to the file and then replace the req.picture with…
v1shva
  • 1,261
  • 3
  • 13
  • 28
3
votes
0 answers

how to send token jwt to verify before response with NodeJs using feathersjs?

I'm doing administration dashboard with use a token jwt. I would like to the user can obtain access to the middleware only if logged. I want to do that if he is logged, the server is shows home page if not, then he is redirect to login page. Below…
SeaDog
  • 645
  • 1
  • 9
  • 32
3
votes
0 answers

How do you get Feathersjs offline-realtime syncing working with aurelia-cli

Windows 10 x64 aurelia-cli 0.31.3 feathers-client 2.3.0 feathers-offline-realtime 0.1.2 I am trying to get feathers-offline-realtime to work with aurelia-cli but I keep getting error. ------- File not found or not accessible ------ Location:…
dan
  • 2,857
  • 6
  • 34
  • 60
3
votes
0 answers

Store file with Mongoose/GridFS with FeathersJs

Building a REST API with FeathersJS I need to be able to upload a picture (POST), record if thanks to GridFS and be able GET it later. I start set up GridFS with Mongoose: const mongoose = require('mongoose'); const Grid =…
Ragnar
  • 2,550
  • 6
  • 36
  • 70
3
votes
0 answers

Feathersjs VS Senecajs

I've been playing with Seneca microservice and feathersjs. Both share some level of similarities. I tried the examples of both seneca and feathers. Feathers has few advantages like Simple and nice CLI Generator Hooks Nice Documentation. And the…
Rahul
  • 1,013
  • 1
  • 10
  • 24