feathersjs

Using feathers-client and sequelize many-to-many relation

旧时模样 提交于 2021-02-10 18:18:10
问题 I'm trying to get data from an n:m association using feathers. I'm using react for my front-end and connecting to feathers using the feathers-client and socketio. //connection string where the feathers api is running const host = 'http://localhost:3030'; const socket = io(host, { transports: ['websocket'], forceNew: true }); // construct feathers app export const client = feathers() .configure(hooks()) .configure(auth({ storage: window.localStorage })) .configure(socketio(socket)); But when I

how to display @feathersjs-client results in Angular

假装没事ソ 提交于 2021-01-29 07:40:28
问题 In process to integrate feathersjs-client into an angular frontend using feathers-chat-angular code as a guide. Backend up and running: MongoDB, Mongoose, express/feathers server. Was able to retrieve data from the frontend, got stuck displaying the response data. Feathers-reactive currently not used. Warning beginner@work ... Was looking into Observables but always ran into: ERROR: Uncaught (in promise): TypeError: this.dataService.issues$(...).pipe... is not a function. Played around with

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

走远了吗. 提交于 2021-01-27 12:20:39
问题 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 providers do you want to use? Other PassportJS strategies not in this list can still be configured manually. (Press <space> to select, <a> to toggle all, <i> t o invert selection)Username + Password (Local) ? What is the name of the user (entity)

Logout using FeathersJS REST API

狂风中的少年 提交于 2021-01-07 01:53:12
问题 Using freshly generated FeathersJS application (local auth), I am doing following REST api calls with following behaviour: GET /users - it FAILS with not-authorized POST /authentication with username and password - successful GET /users - it SUCCEEDS and returns list of users DELETE /authentication - returns auth object, no error messages (and on server side logout event is generated) GET /users - it SUCCEEDS and returns list of users expected result from my side is that on step 5 I would get

Logout using FeathersJS REST API

落爺英雄遲暮 提交于 2021-01-07 01:52:07
问题 Using freshly generated FeathersJS application (local auth), I am doing following REST api calls with following behaviour: GET /users - it FAILS with not-authorized POST /authentication with username and password - successful GET /users - it SUCCEEDS and returns list of users DELETE /authentication - returns auth object, no error messages (and on server side logout event is generated) GET /users - it SUCCEEDS and returns list of users expected result from my side is that on step 5 I would get

How to add a users auth in feathers middleware?

寵の児 提交于 2020-12-14 12:06:19
问题 I use feathersjs framework in my projekt. In older version my middleware it was work but afer update a framework and after created new app with authenticate a middleware not working. My index.js file show like below: const cookieParser = require('cookie-parser'); const { authenticate } = require('@feathersjs/express'); module.exports = function (app) { app.get('/login', (req, res) => { res.sender('login'); }); app.use('/', cookieParser(), authenticate('jwt'), async (req, res) => { const {

How to add a users auth in feathers middleware?

主宰稳场 提交于 2020-12-14 12:04:05
问题 I use feathersjs framework in my projekt. In older version my middleware it was work but afer update a framework and after created new app with authenticate a middleware not working. My index.js file show like below: const cookieParser = require('cookie-parser'); const { authenticate } = require('@feathersjs/express'); module.exports = function (app) { app.get('/login', (req, res) => { res.sender('login'); }); app.use('/', cookieParser(), authenticate('jwt'), async (req, res) => { const {

How to add a users auth in feathers middleware?

冷暖自知 提交于 2020-12-14 12:00:58
问题 I use feathersjs framework in my projekt. In older version my middleware it was work but afer update a framework and after created new app with authenticate a middleware not working. My index.js file show like below: const cookieParser = require('cookie-parser'); const { authenticate } = require('@feathersjs/express'); module.exports = function (app) { app.get('/login', (req, res) => { res.sender('login'); }); app.use('/', cookieParser(), authenticate('jwt'), async (req, res) => { const {

feathers sequelize add/include remote model

筅森魡賤 提交于 2020-05-28 08:06:15
问题 Several days that I am stuck on something so basic as adding remote models using feathersjs. Starting to feel really stupid to be stuck on something so basic. :-/ How to create a tag then add it a post: Tags.addPost({[...]}) How to access sequelize models? https://sequelize.org/master/manual/assocs.html#special-methods-mixins-added-to-instances const tags = sequelizeClient.define( 'tags', { title: { type: DataTypes.STRING, }, } const tags = sequelizeClient.define( 'posts', { title: { type:

feathers sequelize add/include remote model

对着背影说爱祢 提交于 2020-05-28 08:06:14
问题 Several days that I am stuck on something so basic as adding remote models using feathersjs. Starting to feel really stupid to be stuck on something so basic. :-/ How to create a tag then add it a post: Tags.addPost({[...]}) How to access sequelize models? https://sequelize.org/master/manual/assocs.html#special-methods-mixins-added-to-instances const tags = sequelizeClient.define( 'tags', { title: { type: DataTypes.STRING, }, } const tags = sequelizeClient.define( 'posts', { title: { type: