🔐 User authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga and React Router). Local authentication – users can log in using username, passport and authentication through Facebook.
Clone or download
AndrejGajdos Update README.md
link to blog added
Latest commit 1302890 Jun 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media readme update and screenshot added Jun 22, 2018
script minor update Jun 24, 2018
.babelrc init commit Jun 22, 2018
.editorconfig init commit Jun 22, 2018
.eslintrc init commit Jun 22, 2018
.gitignore minor update Jun 24, 2018
LICENSE Initial commit Jun 22, 2018
README.md Update README.md Jun 24, 2018
index-template.ejs init commit Jun 22, 2018
index.html init commit Jun 22, 2018
index.jsx init commit Jun 22, 2018
package-lock.json init commit Jun 22, 2018
package.json minor update Jun 24, 2018
postcss.config.js init commit Jun 22, 2018
webpack.config.js init commit Jun 22, 2018

README.md

auth-flow-spa-node-react

User authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga, React Router). Local authentication, where users can log in using a username and passport and authentication through Facebook.

Authenticating Users in SPA using Node, Passport, React and Redux

Preview

Demo

auth-flow-in-spa.herokuapp.com

Configuration

If you want to use authentication with facebook, you need to create a new facebook app, enable OAuth Login in Settings -> Facebook Login and add Valid OAuth Redirect URIs. Then you need to copy Client Token and App Id into .env file in root of project folder.

Install and Run

  1. Install Redis

  2. Install npm dependencies

# install dependencies
$ npm i
# run project

# run redis
$ redis-server

# run webpack server to serve front-end code
$ npm run webpack

# run node.js server
$ npm run api

License

MIT © Andrej Gajdos