przemek-nowicki / auth-react-and-redux

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

picture alt

About

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


Languages

Language:JavaScript 93.7%Language:HTML 4.1%Language:CSS 1.7%Language:Dockerfile 0.5%