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

what's the featherjs way to handle non-data related actions and child objects?

I just discovered feathersjs and really like the idea behind it, even though I'm still unsure how the service-based philosophy can fit for applications which are more complex than a simple CRUD UI. In order to better understand it I made up an…
muffel
  • 7,004
  • 8
  • 57
  • 98
3
votes
2 answers

Auth0 authentication of single-page-app on a different domain than the api

I'm trying add Auth0 authentication to my single-page-app. My app is running under a domain, say app.mycompany.com, whereas the api used by this app is running under a different domain, say api.mycompany.com. I'm aware of this thread: Single Sign…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
3
votes
1 answer

Arbitrary response content types in Feathers

I have a custom service that must return data in CSV format. I can't use a standard Express route, because I need Feathers' hooks on this endpoint. I couldn't find an example of a Feathers service returning non-HTML, non-JSON data, and have found no…
Gui Prá
  • 5,559
  • 4
  • 34
  • 59
3
votes
0 answers

Node - Improving Startup Speed

I have a Node/Express app. Technically, I'm using Feathers. My app runs well once started. However, the first visit takes over one minute to load the page. After that, it runs fine for the most part. Except, after some unknown period of time, it…
JQuery Mobile
  • 6,221
  • 24
  • 81
  • 134
3
votes
1 answer

How do I deploy my Feathers/Express app to Nginx/Ubuntu?

Like it says on the tin, I'm trying to deploy an app I built on Feathers to my Ubuntu 15 server running Nginx. I'm not finding any straight-forward tutorials online so I thought I'd ask here. I've installed pm2 and know how to get that running, but…
NetOperator Wibby
  • 1,354
  • 5
  • 22
  • 44
3
votes
1 answer

Feathers.js - Loading Static Content

I am evaluating feathers.js for a project. I like its aspirations. So, I decided to try and build a basic content management system just as a learning endeavor. Things have gone pretty smoothly. However, I want to load some static content (articles)…
JQuery Mobile
  • 6,221
  • 24
  • 81
  • 134
3
votes
1 answer

Separating socket.io logic from app.js in feathersjs

I currently have the following in configuration for socket.io in my app.js file: app .configure(feathers.socketio(function(io){ io.on('connection', function(socket){ socket.emit('connect',{test: 'wow'}); …
jumpr3
  • 125
  • 5
3
votes
0 answers

Passport: session serialization failed with serialization functions present

I'm adding authentication to node app using `feathers-passport with the following configuration: .configure(feathersPassport({ secret: 'some-secret', store: new MongoStore({db: 'demo-session'}), resave: false, saveUninitialized:…
barndog
  • 6,975
  • 8
  • 53
  • 105
2
votes
1 answer

Mongoose $inc with enum validation failed

I'm working with featherJs and mongoose. I have a schema with an enum which I want to $inc. new Schema({ status: { type: Number, enum: [0, 1, 2, 3], default: 0 }, }); But when I $inc the 'status' field, it doesn't care about the enum, I can…
Corentin M
  • 176
  • 6
2
votes
0 answers

How to refresh feathers.js token with next-auth and next.js setup

Whenever a user logins in successfully, this is a sample of the server response: { "accessToken":…
Youzef
  • 616
  • 1
  • 6
  • 23
2
votes
1 answer

Add a custom query parameter in Feathers request

I'm hoping to add a custom query parameter that can be used in a hook to process some results. I'd like to add $foo=bar to the request. I can whitelist $foo and it appears in the request, but the service is using an ORM so it tries to query the…
Steven Sokulski
  • 354
  • 1
  • 4
  • 17
2
votes
1 answer

Feathers-vuex My auth state do not persist despite the install of persistState

I have a little problem. I'm making a project using feathers and vuex on Vue 2. In this project there is a dashboard where all my personnal projects / experiences / and messages in. when i login and redirect to the dashboard, all the data is…
p2sias
  • 21
  • 2
2
votes
0 answers

FeathersJS Mongoose model for one-row data

I need to write a Feathers service for non-repeatable data. E.g. Settings model must contain attributes like title, description, nightMode, etc. I see two possible approaches. Horizontal: new Schema({ title: { type: String }, description:…
Danny Matkovsky
  • 662
  • 4
  • 14
2
votes
1 answer

Passing feathers app object to TypeGraphQL using dependency injection

I can't figure out how to pass my app object to my TypeGrapQL resolvers. I created my types and resolvers and setup a graphql server using express-graphql. I was able to run the graph, but no luck in passing the app object to use the registered…
2
votes
1 answer

feathers.js - how to remove field payload from authentication response

After POST /authentication api, the response will be like this. { "accessToken": "XXXXX", "authentication": { "strategy": "local", "accessToken": "XXXXX", "payload": { "iat": 1616402936, "exp":…
CCCC
  • 5,665
  • 4
  • 41
  • 88