Giter Site home page Giter Site logo

Integration with Feathers.js about suicrux HOT 4 CLOSED

metnew avatar metnew commented on May 2, 2024
Integration with Feathers.js

from suicrux.

Comments (4)

Metnew avatar Metnew commented on May 2, 2024

Hi @adanielyan,
Thanks, It will be ever more awesome soon :)

I've never worked with Feathers, but after a quick research, I guess that:

  1. You don't need to change SSR on server. You don't need to change frontend at all(almost).
  2. You need to configure xhr_wrapper (custom request agent in src/common/api/utils) to accept right status codes from server, Authorization header. You need to check other network stuff(headers, tokens, BASE_API). Also, maybe it's even better to replace xhr_wrapper with full-featured request agent (axios, etc.).
  3. I have some experience with React+Redux+Socket.io, so I recommend you to carefully design integration of these libs. Personally, I think that one of the best integration approaches - is to control sockets from one container(e.g. <App>'s child) that is connected to Redux. Other components/containers shouldn't know about sockets (pass functions as props to these components).

(Also, remember that I've never worked with Featers.js, so my recommendations may be inaccurate or even wrong).

from suicrux.

adanielyan avatar adanielyan commented on May 2, 2024

Thank you for a quick response, Vladimir. I'll try to follow the steps you described.

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Also, is your project open-source?

from suicrux.

adanielyan avatar adanielyan commented on May 2, 2024

Some parts of it are, but not all.

from suicrux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.