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
4
votes
1 answer

Sequelize and Feathers: When Relationships Fall Apart

After two days of trying to figure out why my Sequelize models aren't committed to their relationships, I've decided it was time to ask y'all for advice. Here's the story. I'm writing a Feathers JS app using a Postgres (9.4) database with Sequelize…
Chris V.
  • 96
  • 2
  • 7
4
votes
1 answer

Efficiently maintain a set of objects with 'CRUD-Observables'

I've been experimenting with feathersjs and angular2/Rx. What I'm trying to achieve is building an angular2 service that's wrapping a feathersjs service in such a way that one can just subscribe to an Observable that emits an up-to-date set of items…
j2L4e
  • 6,914
  • 34
  • 40
4
votes
1 answer

How to use webpack-dev-middleware with feathers / express?

I'm trying to get a feathersjs app started with a reactjs frontend. Using the webpack-dev-middleware and webpack-hot-middleware, I should be able to simply extend the feathers app with all this webpack stuff during development. The only problem is…
Chet
  • 18,421
  • 15
  • 69
  • 113
4
votes
2 answers

Auth0 with Socket.IO forcing authentication

I need to protect services exported by Feathers database adapter, with token authentication. We did this for REST with: var authenticate = jwt({ secret: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'), audience:…
Moshe Shmukler
  • 1,270
  • 2
  • 21
  • 43
4
votes
2 answers

Node - ReferenceError: Promise is not defined

I am starting out with Node. Sorry for what probably is a stupid question. Trying to understand why the below code throws an error: ReferenceError: Promise is not defined allAccountFixtures: ['account-customer-joe', 'account-partner-sam',…
Moshe Shmukler
  • 1,270
  • 2
  • 21
  • 43
3
votes
1 answer

Type Script paths not working. Even after setting up "baseUrl" property in tsconfig.json

when I try to import {Model, Mongoose} from 'mongoose', it actually looks for ./src/mongoose.ts that's the file generated by feathers by default. this problem only arises when I use the below property in tsconfig.ts. "baseUrl": "./src" I have to use…
3
votes
1 answer

this.app.service(...).create(...) is not a function

I tried to make api request twice and the first one work, but the second fails with below error. { "name": "GeneralError", "message": "this.app.service(...).create(...) is not a function", "code": 500, "className": "general-error", …
CCCC
  • 5,665
  • 4
  • 41
  • 88
3
votes
0 answers

feathers js - not able to access correct config file

There are 3 file created in /config. default.json { "host": "localhost", "port": "PORT", "msg": "default" } local.json { "host": "localhost", "port": 3030, "msg": "local" } dev.json { "host": "localhost", "port": 3030, …
CCCC
  • 5,665
  • 4
  • 41
  • 88
3
votes
1 answer

docker-compose - NODE_ENV not applying

There are 2 files in /config. local.json { "host": "localhost", "port": 3030, "env": "local" } dev.json { "host": "localhost", "port": 3030, "env": "dev" } Whenever the application runs, it should log something like info:…
CCCC
  • 5,665
  • 4
  • 41
  • 88
3
votes
0 answers

Feathers js - TypeError: app.get is not a function

I want to extract the host and port from config file(config/default.json etc) in winston-logger.js. When I try to use app.get('host'), error occurs. TypeError: app.get is not a function config/default.json { "host": "localhost", "port": 3030, …
CCCC
  • 5,665
  • 4
  • 41
  • 88
3
votes
0 answers

Feathers Typescript - Typed HookContext

My goals: Be able to do app.get([typed options appear here]) Be able to do app.service([typed options appear here]) -> this does not happen when using HookContex In my attempt to solve this I tried the following: in the declarations.d.ts…
eGlu
  • 697
  • 11
  • 22
3
votes
1 answer

How to debug feathersjs with typescript on VS Code?

I want to debug a typescript feathersjs project using VSCode but when I launch the program a get the error "Cannot launch program '[project_path]/src/index.ts' because corresponding JavaScript cannot be found. " My launch.json look like…
António
  • 435
  • 7
  • 17
3
votes
2 answers

Setting up production with featherjs

I would like to build my featherjs app for production. I am using feathersjs with vuejs. According to https://docs.feathersjs.com/api/configuration.html, there is a default.json and production.json. I can input the host and port for the…
Ninja Dude
  • 1,332
  • 4
  • 27
  • 54
3
votes
1 answer

How do we use hook for Feathersjs + Apollo v2?

Having problem setting up hook for Feathersjs + Apollo v2. Main reason needing it is for authorization. src/services/graphql/graphql.service.js:65 service.hooks(hooks); ^ TypeError: Cannot read property 'hooks' of undefined Following is my…
Yen Sheng
  • 695
  • 1
  • 12
  • 28
3
votes
1 answer

Feathers auth Invalid login

I'm try to use local authentication, but get error message "Invalid Login". I send 'local' auth from client. Received data on server { strategy: 'local', email: 'email@gmail.com', password: '123' }, { query: {}, provider:…
Alexandr Lukovnikov
  • 170
  • 1
  • 5
  • 17