How to integrate nodebb into my React.js app i have installed it in my server but im not getting any document to add it to my website .
-
I am using mongodb for both but i want same user login for both nodebb and my web app.
-
@Chandan-Jaiswal said in How to integrate nodebb into my React.js app i have installed it in my server but im not getting any document to add it to my website .:
I am using mongodb for both but i want same user login for both nodebb and my web app.
So that is a bit complex. NodeBB isn't really designed to be a single sign on mechanism. You can make your bespoke application read the MongoDB collection for login information. Generally, however, it is better to use an external management source, (Facebook, Google, or one that you run yourself, for example) and have both authenticate against that. NodeBB does this all of the time.
Attempting to use NodeBB's database for another application's user management is clunky. But technically, it would work.
-
This is definitely not something that would be documented or recommended. But you can look at the NodeBB code and see how it is talking to the database for user information and replicate that in your own application. React.js, however, is a front end technology, not a server tech, so not meant to talk to a database. So there is a fundamental disconnect here. React is meant only for the presentation layer of your app, not to be an app itself.
-
-
@scottalanmiller yes i have searched a lot but coudnt get any documentation on this.
But nodebb is getting very popular so we need proper documentation for integrating in react app.