Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/przemek-nowicki/auth-react-and-redux

Oauth2.0 and JWT authentication with React, Redux and Node.js
https://github.com/przemek-nowicki/auth-react-and-redux

facebook-oath google-oauth jwt oath passport passport-facebook passport-google passport-jwt react react-jwt redux sign-in-with-facebook sign-in-with-google spa

Last synced: 18 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](http://assets.miwu.pl/oauth-sign-in-form.png "Form")