auth-react-and-redux

Oauth2.0 and JWT authentication with React, Redux and Node.js

Stars
12

React authentication with google, facebook via OAuth (React, Redux, JWT).

Setup

Rename config example-application.js file to application.js inside backend/config directory. Set your facebook and google app id, database connection and other settings. By default feel free to use my configuration.

Instalation

In root directory: npm install Go to backend directory and install all dependencies: npm install

Run

Frontend

In root directory run: npm start

Backend

In separate terminal run backend service: cd backend npm start

Docker

If you have docker cpmpose installed you can use a one-liner command instead of jumping into different directories: docker-compose up --build Open http://localhost:3000 in your browser, you should see the below screen: