I am working on a project I currently have a website(React.js), dashboard and a REST api. I have the dashboard and the REST api on the same express app. Is it better to have them split like making an express app just for the dashboard and another one for the API?
I personally use the same api, but the react bundle can be split. React docs Code-Splitting. Good youtube tutorial here. If you are not already doing that.
Related
I’m just learning how to hook up my ReactJS frontend to a Node.JS /Express backend, using the Auth0 SDK.
So far, so good in terms of creating users and adding user_metadata / user_appdata via the Auth0 console and User Management API; but I would like to allow my website Admins to create users from a frontend form via the Auth0 API.
I can’t find any code samples or tutorial videos to help me get on the right track. Feeling kinda lost right now. Any help would be greatly appreciated.
Thanks in advance,
Carlos
I'm trying to implement Google Sign-in into my Angular 8 app which has a REST backend in Node.js+Express.js, I'm not able to find a usefull library, can anyone help me out please?
You can use Firebase auth for this purpose which is very easy to implement and understand. Either this Google oauth2 nodejs library describes the steps to implement the Google Auth in a node.js environment.
I'm building a MERN stack web app and is trying to use passport.js for authentication.
The frontend in my app communicates with backend through the RESTful api and they are planed to be deployed in two different containers. I've looked up some most widely used passport google strategies as well as blog posts for implementation, and it seems like all of them are assuming the implementation of a server side render web app.
In my frontend, I'm using the React component react-google-login to get the user profile from Google. But I'm unsure about what passport strategy is preferable, or applicable, for this use case of mine.
Any suggestion? Thanks!
I am looking for API and Example that can help me to build two-factor authentication of my website for the server as well as the front side.
I want to build something like this, http://ngtfaweb.azurewebsites.net/#/home
You could use Passport Js if you are using node js as backend or you could use services like Auth0 which are one step solution for multiple Oauth.
so im trying to create a simple fullstack app (movies board) to learn react but im having some questions/doubts. Im used to create backend mvc app's with express. So for react i need to create a RESTful API right? if yes how can i protect the api against "public use"?
you need to implement some kind of authorization to secure the API.
Try to use OAuth